Skip to content

Commit a7ab5c0

Browse files
committed
Remove usage of Thread#stop, it throws UnsupportedOperationException on JDK 20
1 parent 7f10b42 commit a7ab5c0

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2067,13 +2067,6 @@ protected void perform(ThreadLocalAction.Access access) {
20672067
});
20682068
}
20692069
if (isOurThread) {
2070-
// Thread#stop is not supported on SVM
2071-
if (!ImageInfo.inImageCode()) {
2072-
if (thread.isAlive()) {
2073-
LOGGER.warning("could not join thread " + thread.getName() + ". Trying to stop it.");
2074-
}
2075-
thread.stop();
2076-
}
20772070
if (thread.isAlive()) {
20782071
LOGGER.warning("Could not stop thread " + thread.getName());
20792072
}

0 commit comments

Comments
 (0)