Home
last modified time | relevance | path

Searched refs:GetMaxSize (Results 1 – 16 of 16) sorted by relevance

/ark/runtime_core/runtime/tests/
Dinternal_allocator_test.cpp73 InfinitiveAllocate(FreeListAllocator<EmptyMemoryConfig>::GetMaxSize()); in TEST_F()
75 InfinitiveAllocate(FreeListAllocator<EmptyMemoryConfig>::GetMaxSize() + 1); in TEST_F()
122 mem = allocator_->Alloc(FreeListAllocator<EmptyMemoryConfig>::GetMaxSize()); in TEST_F()
127 mem = allocator_->Alloc(FreeListAllocator<EmptyMemoryConfig>::GetMaxSize() + 1); in TEST_F()
Dhybrid_object_allocator_test.cpp83 size_t size = HybridObjectAllocator::LargeObjectAllocator::GetMaxSize() + 1; in TEST_F()
92 size = HybridObjectAllocator::LargeObjectAllocator::GetMaxSize() + 1; in TEST_F()
Dregion_allocator_test.cpp582 for (uint32_t i = 8; i <= RegionNonmovableObjectAllocator::GetMaxSize(); i++) { in TEST_F()
596 static constexpr size_t MAX_MT_ALLOC_SIZE = RegionNonmovableObjectAllocator::GetMaxSize(); in TEST_F()
614 size_t start_object_size = RegionNonmovableObjectAllocator::GetMaxSize() + 1; in TEST_F()
618 ASSERT_TRUE(allocator.Alloc(RegionNonmovableLargeObjectAllocator::GetMaxSize() - 1) != nullptr); in TEST_F()
619 ASSERT_TRUE(allocator.Alloc(RegionNonmovableLargeObjectAllocator::GetMaxSize()) != nullptr); in TEST_F()
630 static constexpr size_t MIN_MT_ALLOC_SIZE = RegionNonmovableObjectAllocator::GetMaxSize() + 1; in TEST_F()
631 static constexpr size_t MAX_MT_ALLOC_SIZE = RegionNonmovableLargeObjectAllocator::GetMaxSize(); in TEST_F()
Dfreelist_allocator_test.cpp63 static constexpr size_t MAX_ALLOC_SIZE = NonObjectFreeListAllocator::GetMaxSize();
/ark/runtime_core/runtime/mem/
Dpygote_space_allocator.h61 static constexpr size_t GetMaxSize() in GetMaxSize() function
63 return RunSlotsAllocator<AllocConfigT>::GetMaxSize(); in GetMaxSize()
68 … return state_ == STATE_PYGOTE_INIT && AlignUp(size, GetAlignmentInBytes(align)) <= GetMaxSize(); in CanAllocNonMovable()
Dallocator.cpp77 if (aligned_size <= ObjectAllocator::GetMaxSize()) { in Allocate()
80 } else if (aligned_size <= LargeObjectAllocator::GetMaxSize()) { in Allocate()
233 if (aligned_size <= ObjectAllocator::GetMaxSize()) { in AllocateNonMovable()
237 } else if (aligned_size <= LargeObjectAllocator::GetMaxSize()) { in AllocateNonMovable()
255 if (aligned_size <= ObjectAllocator::GetMaxSize()) { in AllocateTenured()
258 } else if (aligned_size <= LargeObjectAllocator::GetMaxSize()) { in AllocateTenured()
386 return ObjectAllocator::GetMaxSize(); in GetRegularObjectMaxSize()
392 return LargeObjectAllocator::GetMaxSize(); in GetLargeObjectMaxSize()
450 return ObjectAllocator::GetMaxSize(); in GetRegularObjectMaxSize()
456 return LargeObjectAllocator::GetMaxSize(); in GetLargeObjectMaxSize()
Dinternal_allocator.cpp169 static_assert(RunSlotsAllocatorT::GetMaxSize() == LocalSmallObjectAllocator::GetMaxSize()); in AllocViaPandaAllocators()
170 if (LIKELY(aligned_size <= RunSlotsAllocatorT::GetMaxSize())) { in AllocViaPandaAllocators()
188 } else if (aligned_size <= FreeListAllocatorT::GetMaxSize()) { in AllocViaPandaAllocators()
Dregion_allocator.h354 constexpr static size_t GetMaxSize() in GetMaxSize() function
356 return std::min(ObjectAllocator::GetMaxSize(), static_cast<size_t>(REGION_SIZE - 1_KB)); in GetMaxSize()
Dtlab.h156 static constexpr size_t GetMaxSize() in GetMaxSize() function
Dhumongous_obj_allocator.h129 static constexpr size_t GetMaxSize() in GetMaxSize() function
Dfreelist_allocator.h153 static constexpr size_t GetMaxSize() in GetMaxSize() function
Drunslots_allocator.h138 static constexpr size_t GetMaxSize() in GetMaxSize() function
Dregion_allocator-inl.h353 ASSERT(align_size <= ObjectAllocator::GetMaxSize()); in Alloc()
/ark/runtime_core/runtime/mem/gc/hybrid-gc/
Dhybrid_object_allocator.cpp49 if (aligned_size <= LargeObjectAllocator::GetMaxSize()) { in AllocateInLargeAllocator()
/ark/runtime_core/libpandabase/mem/
Dmmap_mem_pool.h206 size_t GetMaxSize() const in GetMaxSize() function
Dmmap_mem_pool-inl.h474 ASSERT(unused_bytes + freed_bytes <= common_space_.GetMaxSize()); in GetObjectSpaceFreeBytes()