Skip to content

Commit bca6dbf

Browse files
committed
[GR-39149] make reference cleaner part of our thread group to give it longer to shut down
1 parent 6bc0fdc commit bca6dbf

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/hpy

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/hpy/GraalHPyContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2590,7 +2590,7 @@ private ReferenceQueue<Object> createReferenceQueue() {
25902590
// lazily register the runnable that concurrently collects the queued references
25912591
Env env = getContext().getEnv();
25922592
if (env.isCreateThreadAllowed()) {
2593-
Thread thread = env.createThread(new GraalHPyReferenceCleanerRunnable(referenceQueue), null);
2593+
Thread thread = env.createThread(new GraalHPyReferenceCleanerRunnable(referenceQueue), null, getContext().getThreadGroup());
25942594
// Make the cleaner thread a daemon; it should not prevent JVM shutdown.
25952595
thread.setDaemon(true);
25962596
thread.start();

0 commit comments

Comments
 (0)