< prev index next > test/hotspot/gtest/gc/z/test_zLiveMap.cpp
Print this page
bool inc_live;
uintptr_t object = 0u;
// Mark the object strong.
! livemap.set_atomic(object, false /* finalizable */, inc_live);
// Check that both bits are in the same segment.
ASSERT_EQ(livemap.index_to_segment(0), livemap.index_to_segment(1));
// Check that the object was marked.
bool inc_live;
uintptr_t object = 0u;
// Mark the object strong.
! livemap.set(object, false /* finalizable */, inc_live);
// Check that both bits are in the same segment.
ASSERT_EQ(livemap.index_to_segment(0), livemap.index_to_segment(1));
// Check that the object was marked.
< prev index next >