Skip to content

Commit 4c7770b

Browse files
committed
Don't clear the ThreadGroup when Thread terminates
CRuby does not clear the ThreadGroup set in the Thread when the thread terminates. We do, which leads to some unpredictability in specs that check the group against a very short-lived thread. This patch removes the call to clear the thread's group.
1 parent e3de28b commit 4c7770b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

core/src/main/java/org/jruby/RubyThreadGroup.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ void addDirectly(RubyThread rubyThread) {
120120

121121
public void remove(RubyThread rubyThread) {
122122
synchronized (rubyThread) {
123-
rubyThread.setThreadGroup(null);
124123
rubyThreadList.remove(rubyThread);
125124
}
126125
}

0 commit comments

Comments
 (0)