Skip to content

Commit f954b3d

Browse files
committed
Run markers before doing garbage collection.
1 parent 33a9205 commit f954b3d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/truffleruby/core/VMPrimitiveNodes.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ public static abstract class VMGCStartPrimitiveNode extends PrimitiveArrayArgume
109109
@TruffleBoundary
110110
@Specialization
111111
public DynamicObject vmGCStart() {
112+
getContext().getMarkingService().runMarkersAndDropKeptList();
112113
System.gc();
113114
return nil();
114115
}

0 commit comments

Comments
 (0)