Skip to content

Commit d96c5fa

Browse files
committed
Assign all threads to thread group
1 parent 97f05fc commit d96c5fa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/PythonContext.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,8 +1250,7 @@ public long spawnTruffleContext(int fd, int sentinel, int[] fdsToKeep) {
12501250
TruffleContext childContext = childContextBuilder.build();
12511251
data.setTruffleContext(childContext);
12521252
ChildContextThread childContextRunnable = new ChildContextThread(fd, sentinel, data);
1253-
TruffleThreadBuilder threadBuilder = data.parentCtx.env.newTruffleThreadBuilder(childContextRunnable).context(childContext);
1254-
Thread thread = threadBuilder.build();
1253+
Thread thread = data.parentCtx.env.newTruffleThreadBuilder(childContextRunnable).context(childContext).threadGroup(threadGroup).build();
12551254
long tid = PThread.getThreadId(thread);
12561255
getSharedMultiprocessingData().putChildContextThread(tid, thread);
12571256
getSharedMultiprocessingData().putChildContextData(tid, data);

0 commit comments

Comments
 (0)