Skip to content

Commit 3c3012c

Browse files
committed
fix: do not call notifyGCFast as it can block
1 parent 317f5e9 commit 3c3012c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

test-app/runtime/src/main/java/com/tns/Runtime.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ private static int generateNewObjectId(int runtimeId) {
7373
private native boolean notifyGcLegacy(int runtimeId, int[] javaObjectIds);
7474

7575
private boolean notifyGc(int runtimeId, int[] javaObjectIds) {
76-
return SUPPORTS_OPTIMIZED_NATIVE
77-
? notifyGcFast(runtimeId, javaObjectIds)
78-
: notifyGcLegacy(runtimeId, javaObjectIds);
76+
return notifyGcLegacy(runtimeId, javaObjectIds);
7977
}
8078

8179
private native void lock(int runtimeId);

0 commit comments

Comments
 (0)