class ZLiveMapTest : public ::testing::Test { protected: staticvoid strongly_live_for_large_zpage() { // Large ZPages only have room for one object.
ZLiveMap livemap(1);
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.
ASSERT_TRUE(livemap.get(0));
// Check that the object was strongly marked.
ASSERT_TRUE(livemap.get(1));
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.