Skip to content

Commit 90ef0cc

Browse files
committed
[GR-30268] Warn when thread cannot be stopped in PythonContext#joinThreads.
PullRequest: graalpython/1840
2 parents 6cf03cb + 62df26a commit 90ef0cc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1218,9 +1218,12 @@ protected void perform(ThreadLocalAction.Access access) {
12181218
}
12191219
if (isOurThread) {
12201220
if (thread.isAlive()) {
1221-
LOGGER.warning("could not join thread " + thread.getName());
1221+
LOGGER.warning("could not join thread " + thread.getName() + ". Trying to stop it.");
12221222
}
12231223
thread.stop();
1224+
if (thread.isAlive()) {
1225+
LOGGER.warning("Could not stop thread " + thread.getName());
1226+
}
12241227
}
12251228
}
12261229
}

0 commit comments

Comments
 (0)