Searched refs:tlab (Results 1 – 12 of 12) sorted by relevance
/ark/runtime_core/runtime/tests/ |
D | tlab_test.cpp | 66 TLAB *tlab = CreateNewTLAB(); in TEST_F() local 67 ASSERT_TRUE(tlab != nullptr); in TEST_F() 70 …auto free_pointer_addr = static_cast<uintptr_t *>(ToVoidPtr(ToUintPtr(tlab) + TLAB::TLABFreePointe… in TEST_F() 71 … auto end_addr = static_cast<uintptr_t *>(ToVoidPtr(ToUintPtr(tlab) + TLAB::TLABEndAddrOffset())); in TEST_F() 75 void *mem = tlab->Alloc(AlignUp(ALLOC_SIZE, DEFAULT_ALIGNMENT_IN_BYTES)); in TEST_F() 89 TLAB *tlab = CreateNewTLAB(); in TEST_F() local 98 arr[i] = static_cast<int *>(tlab->Alloc(sizeof(int))); in TEST_F() 111 void *ptr = tlab->Alloc(TLAB_TEST_SIZE); in TEST_F()
|
D | bump_allocator_test.cpp | 140 TLAB *tlab = allocator.CreateNewTLAB(TLAB_SIZE); in TEST_F() local 141 ASSERT_TRUE(tlab != nullptr) << ", seed:" << seed_; in TEST_F() 146 tlab_elements[i] = static_cast<ALLOC_TYPE *>(tlab->Alloc(sizeof(ALLOC_TYPE))); in TEST_F() 153 ASSERT_TRUE(tlab->Alloc(sizeof(ALLOC_TYPE)) == nullptr); in TEST_F() 177 TLAB *tlab = allocator.CreateNewTLAB(TLAB_SIZE); in TEST_F() local 178 ASSERT_TRUE(tlab != nullptr) << ", seed:" << seed_; in TEST_F() 183 tlab_elements[i] = static_cast<ALLOC_TYPE *>(tlab->Alloc(sizeof(ALLOC_TYPE))); in TEST_F() 198 ASSERT_TRUE(tlab->Alloc(sizeof(ALLOC_TYPE)) == nullptr); in TEST_F() 232 TLAB *tlab = allocator.CreateNewTLAB(TLAB_SIZE); in TEST_F() local 233 ASSERT_TRUE(tlab != nullptr) << ", seed:" << seed_; in TEST_F() [all …]
|
D | region_allocator_test.cpp | 268 auto tlab = thread->GetTLAB(); in TEST_F() local 269 ASSERT_NE(tlab, nullptr); in TEST_F() 270 tlab = allocator.CreateNewTLAB(thread); in TEST_F() 272 auto old_start_pointer = tlab->GetStartAddr(); in TEST_F() 274 auto mem = tlab->Alloc(ALLOC_SIZE); in TEST_F() 279 auto new_start_pointer = tlab->GetStartAddr(); in TEST_F() 285 ASSERT_EQ(new_tlab, tlab); in TEST_F() 286 mem = tlab->Alloc(ALLOC_SIZE); in TEST_F()
|
/ark/runtime_core/runtime/mem/ |
D | bump-allocator-inl.h | 121 TLAB *tlab = nullptr; in CreateNewTLAB() local 124 tlab = tlab_manager_.GetUnusedTLABInstance(); in CreateNewTLAB() 125 if (tlab != nullptr) { in CreateNewTLAB() 132 tlab->Fill(tlab_buffer_start, size); in CreateNewTLAB() 141 return tlab; in CreateNewTLAB() 178 tlab_manager_.IterateOverTLABs([&](TLAB *tlab) { in IterateOverObjects() 179 tlab->IterateOverObjects(object_visitor); in IterateOverObjects() 244 …&mem_visitor, mem_range = MemRange(ToUintPtr(start_ptr), ToUintPtr(end_ptr))](TLAB *tlab) -> bool { in IterateOverObjectsInRange() 245 tlab->IterateOverObjectsInRange(mem_visitor, mem_range); in IterateOverObjectsInRange() 278 tlab_manager_.IterateOverTLABs([&](TLAB *tlab) { in ContainObject() [all …]
|
D | region_allocator-inl.h | 178 auto tlab = thread->GetTLAB(); in CreateNewTLAB() local 179 ASSERT(tlab != nullptr); in CreateNewTLAB() 183 region->SetTLAB(tlab); in CreateNewTLAB() 185 tlab->Fill(ToVoidPtr(top), end - top); in CreateNewTLAB() 188 return tlab; in CreateNewTLAB() 194 auto tlab = thread->GetTLAB(); in RevokeTLAB() local 195 ASSERT(tlab != nullptr); in RevokeTLAB() 196 if (tlab->IsEmpty()) { in RevokeTLAB() 201 Region *r = Region::AddrToRegion(tlab->GetStartAddr()); in RevokeTLAB() 202 r->SetTop(ToUintPtr(tlab->GetCurPos())); in RevokeTLAB() [all …]
|
D | heap_manager.cpp | 269 void HeapManager::RegisterTLAB(TLAB *tlab) in RegisterTLAB() argument 271 ASSERT(tlab != nullptr); in RegisterTLAB() 272 if (!PANDA_TRACK_TLAB_ALLOCATIONS && (tlab->GetOccupiedSize() != 0)) { in RegisterTLAB() 273 mem_stats_->RecordAllocateObject(tlab->GetOccupiedSize(), SpaceType::SPACE_TYPE_OBJECT); in RegisterTLAB()
|
D | region_space.h | 146 void SetTLAB(TLAB *tlab) in SetTLAB() argument 148 tlab_ = tlab; in SetTLAB()
|
D | heap_manager.h | 92 void RegisterTLAB(TLAB *tlab);
|
/ark/runtime_core/runtime/ |
D | thread.cpp | 397 void ManagedThread::UpdateTLAB(mem::TLAB *tlab) in UpdateTLAB() argument 400 ASSERT(tlab != nullptr); in UpdateTLAB() 401 stor_ptr_.tlab_ = tlab; in UpdateTLAB()
|
D | BUILD.gn | 133 "mem/tlab.cpp",
|
D | CMakeLists.txt | 98 mem/tlab.cpp
|
/ark/runtime_core/runtime/include/ |
D | managed_thread.h | 189 void UpdateTLAB(mem::TLAB *tlab);
|