We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a240b8c commit 4880ca1Copy full SHA for 4880ca1
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/PythonContext.java
@@ -877,8 +877,13 @@ private void shutdownThreads() {
877
// the threading module above. So we just interrupt them. Their exit is handled
878
// in the acquireGil function, which will be interrupted for these threads
879
disposeThread(thread);
880
- thread.interrupt();
881
- thread.join();
+ for (int i = 0; i < 100; i++) {
+ thread.interrupt();
882
+ thread.join(2);
883
+ }
884
+ if (thread.isAlive()) {
885
+ LOGGER.warning("could not join thread " + thread.getName());
886
887
}
888
889
} catch (InterruptedException e) {
0 commit comments