< prev index next > test/hotspot/gtest/gc/shared/test_preservedMarks.cpp
Print this page
markWord m = markWord::encode_pointer_as_mark(obj);
_oop.set_mark(m);
}
static markWord originalMark() { return markWord(markWord::lock_mask_in_place); }
! static markWord changedMark() { return markWord(0x4711); }
};
#define ASSERT_MARK_WORD_EQ(a, b) ASSERT_EQ((a).value(), (b).value())
TEST_VM(PreservedMarks, iterate_and_restore) {
markWord m = markWord::encode_pointer_as_mark(obj);
_oop.set_mark(m);
}
static markWord originalMark() { return markWord(markWord::lock_mask_in_place); }
! static markWord changedMark() { return markWord((uintptr_t)0x4711 << markWord::hash_shift); }
};
#define ASSERT_MARK_WORD_EQ(a, b) ASSERT_EQ((a).value(), (b).value())
TEST_VM(PreservedMarks, iterate_and_restore) {
< prev index next >