Searched refs:irt (Results 1 – 2 of 2) sorted by relevance
/art/runtime/ |
D | indirect_reference_table_test.cc | 33 static void CheckDump(IndirectReferenceTable* irt, size_t num_objects, size_t num_unique) in CheckDump() argument 36 irt->Dump(oss); in CheckDump() 58 IndirectReferenceTable irt(kTableMax, in TEST_F() local 62 ASSERT_TRUE(irt.IsValid()) << error_msg; in TEST_F() 79 CheckDump(&irt, 0, 0); in TEST_F() 82 EXPECT_FALSE(irt.Remove(cookie, iref0)) << "unexpectedly successful removal"; in TEST_F() 85 iref0 = irt.Add(cookie, obj0.Get(), &error_msg); in TEST_F() 87 CheckDump(&irt, 1, 1); in TEST_F() 88 IndirectRef iref1 = irt.Add(cookie, obj1.Get(), &error_msg); in TEST_F() 90 CheckDump(&irt, 2, 2); in TEST_F() [all …]
|
/art/runtime/jni/ |
D | jni_internal_test.cc | 2447 IndirectReferenceTable irt(5, in TEST_F() local 2451 ASSERT_TRUE(irt.IsValid()) << error_msg; in TEST_F() 2452 IRTSegmentState old_state = irt.GetSegmentState(); in TEST_F() 2459 uint8_t* base = reinterpret_cast<uint8_t*>(&irt); in TEST_F() 2465 EXPECT_EQ(new_state.top_index, irt.GetSegmentState().top_index); in TEST_F()
|