Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spec of Thread#status for an externally killed thread that sleeps #4815

Merged
merged 1 commit into from Oct 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion core/src/main/java/org/jruby/RubyThread.java
Expand Up @@ -1511,7 +1511,9 @@ public void enterSleep() {
}

public void exitSleep() {
status.set(Status.RUN);
if (status.get() != Status.ABORTING) {
status.set(Status.RUN);
}
}

@JRubyMethod(name = {"kill", "exit", "terminate"})
Expand Down
1 change: 0 additions & 1 deletion spec/tags/ruby/core/thread/status_tags.txt
@@ -1,2 +1 @@
unstable:Thread#status reports aborting on a killed thread
fails:Thread#status reports aborting on an externally killed thread that sleeps