Home
last modified time | relevance | path

Searched refs:tlab (Results 1 – 12 of 12) sorted by relevance

/ark/runtime_core/runtime/tests/
Dtlab_test.cpp66 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()
Dbump_allocator_test.cpp140 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 …]
Dregion_allocator_test.cpp268 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/
Dbump-allocator-inl.h121 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 …]
Dregion_allocator-inl.h178 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 …]
Dheap_manager.cpp269 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()
Dregion_space.h146 void SetTLAB(TLAB *tlab) in SetTLAB() argument
148 tlab_ = tlab; in SetTLAB()
Dheap_manager.h92 void RegisterTLAB(TLAB *tlab);
/ark/runtime_core/runtime/
Dthread.cpp397 void ManagedThread::UpdateTLAB(mem::TLAB *tlab) in UpdateTLAB() argument
400 ASSERT(tlab != nullptr); in UpdateTLAB()
401 stor_ptr_.tlab_ = tlab; in UpdateTLAB()
DBUILD.gn133 "mem/tlab.cpp",
DCMakeLists.txt98 mem/tlab.cpp
/ark/runtime_core/runtime/include/
Dmanaged_thread.h189 void UpdateTLAB(mem::TLAB *tlab);