Skip to content

Commit c36bf43

Browse files
committed
Fixes issue-7652 for epsilon gc
1 parent a6b2623 commit c36bf43

File tree

1 file changed

+1
-1
lines changed
  • substratevm/src/com.oracle.svm.core.genscavenge/src/com/oracle/svm/core/genscavenge

1 file changed

+1
-1
lines changed

substratevm/src/com.oracle.svm.core.genscavenge/src/com/oracle/svm/core/genscavenge/HeapImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ public long getThreadAllocatedMemory(IsolateThread thread) {
691691
@Override
692692
@Uninterruptible(reason = "Ensure that no GC can occur between modification of the object and this call.", callerMustBe = true)
693693
public void dirtyAllReferencesOf(Object obj) {
694-
if (obj != null) {
694+
if (SubstrateOptions.useRememberedSet() && obj != null) {
695695
ForcedSerialPostWriteBarrier.force(OffsetAddressNode.address(obj, 0), false);
696696
}
697697
}

0 commit comments

Comments
 (0)