Skip to content

Commit 2cb5ba3

Browse files
committed
[GR-50383] Backport to 23.0: HeapImpl.dirtyAllReferencesOf must be no-op for epsilon GC.
PullRequest: graal/16268
2 parents 7edc294 + 2532d19 commit 2cb5ba3

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
@@ -689,7 +689,7 @@ public long getThreadAllocatedMemory(IsolateThread thread) {
689689
@Override
690690
@Uninterruptible(reason = "Ensure that no GC can occur between modification of the object and this call.", callerMustBe = true)
691691
public void dirtyAllReferencesOf(Object obj) {
692-
if (obj != null) {
692+
if (SubstrateOptions.useRememberedSet() && obj != null) {
693693
ForcedSerialPostWriteBarrier.force(OffsetAddressNode.address(obj, 0), false);
694694
}
695695
}

0 commit comments

Comments
 (0)