Skip to content

Commit cd31961

Browse files
a-sivaCommit Queue
authored andcommitted
[vm] - Fix gcc compilation error
56962 - MutatorMarkerRace_DetectInTLAB test compile error on GCC TEST=ci Change-Id: I16038dc5f2fd8656652c13c55e7e4b403c4f859a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/392063 Reviewed-by: Ryan Macnak <[email protected]> Commit-Queue: Siva Annamalai <[email protected]>
1 parent e25601e commit cd31961

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

runtime/vm/heap/heap_test.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1658,10 +1658,10 @@ VM_UNIT_TEST_CASE(MutatorMarkerRace_DetectInTLAB) {
16581658
}
16591659
}
16601660

1661-
new_page->top.store(
1662-
reinterpret_cast<uword>(
1663-
&new_page->objects[kExistingObjectSlotCount + 1]),
1664-
std::memory_order_release);
1661+
new_page->top.store(reinterpret_cast<uword>(
1662+
&new_page->objects[kExistingObjectSlotCount] +
1663+
sizeof(NewObject*)),
1664+
std::memory_order_release);
16651665
},
16661666
[](ExistingObject* existing_object) {
16671667
// Marker:

0 commit comments

Comments
 (0)