File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,7 @@ public Node copy() {
217
217
* Wrap the execution of a Python callee called from a Python frame.
218
218
*/
219
219
public void enter (VirtualFrame frame ) {
220
+ assert PythonLanguage .getContext ().ownsGil () : PythonContext .dumpStackOnAssertionHelper ("callee w/o GIL" );
220
221
// tfel: Create our frame reference here and store it so that
221
222
// there's no reference to it from the caller side.
222
223
PFrame .Reference thisFrameRef = new PFrame .Reference (PArguments .getCallerFrameInfo (frame ));
Original file line number Diff line number Diff line change @@ -1166,7 +1166,7 @@ void acquireGil() throws InterruptedException {
1166
1166
}
1167
1167
}
1168
1168
1169
- private static final String dumpStackOnAssertionHelper (String msg ) {
1169
+ static final String dumpStackOnAssertionHelper (String msg ) {
1170
1170
Thread .dumpStack ();
1171
1171
return msg ;
1172
1172
}
You can’t perform that action at this time.
0 commit comments