Skip to content

Commit a8d9914

Browse files
committed
[GR-20538] Refuse to start from multithreaded polyglot programs
PullRequest: graalpython/780
2 parents 7b9c0fb + 3829393 commit a8d9914

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/PythonLanguage.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,9 @@ protected boolean isThreadAccessAllowed(Thread thread, boolean singleThreaded) {
584584
if (singleThreaded) {
585585
return super.isThreadAccessAllowed(thread, singleThreaded);
586586
}
587+
if (isWithThread == null) {
588+
isWithThread = false;
589+
}
587590
return isWithThread;
588591
}
589592

0 commit comments

Comments
 (0)