Skip to content

Commit 9db8b1e

Browse files
committed
gc before polling
1 parent e21656e commit 9db8b1e

File tree

1 file changed

+1
-0
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/capi/transitions

1 file changed

+1
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/capi/transitions/CApiTransitions.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ public static PyCapsuleReference registerPyCapsuleDestructor(PyCapsule capsule)
409409

410410
@TruffleBoundary
411411
public static void exitPollCleanup() {
412+
PythonUtils.forceFullGC();
412413
PythonContext context = PythonContext.get(null);
413414
HandleContext handleContext = context.nativeContext;
414415
int len = handleContext.nativeStubLookup.length;

0 commit comments

Comments
 (0)