Skip to content

Commit

Permalink
Delete now-unused ABORTING status
Browse files Browse the repository at this point in the history
"aborting" is only presented as status when a thread has been
actively killed, which is implemented by a separate flag. The
thread remains internally in RUN status, as in CRuby.
  • Loading branch information
headius committed Dec 10, 2024
1 parent a065064 commit 6d6ea6c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/src/main/java/org/jruby/RubyThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public class RubyThread extends RubyObject implements ExecutionContext {

/** Thread statuses */
public enum Status {
RUN, SLEEP, ABORTING, DEAD, NATIVE;
RUN, SLEEP, DEAD, NATIVE;

public final ByteList bytes;

Expand Down Expand Up @@ -1932,9 +1932,7 @@ public void enterSleep() {
}

public void exitSleep() {
if (getStatus() != Status.ABORTING) {
STATUS.set(this, Status.RUN);
}
STATUS.set(this, Status.RUN);
}

private Status getStatus() {
Expand Down

0 comments on commit 6d6ea6c

Please sign in to comment.