Searched refs:MAX_SIZE (Results 1 - 7 of 7) sorted by relevance
/arkcompiler/runtime_core/static_core/libpandabase/mem/ |
H A D | stack_like_allocator-inl.h | 27 template <Alignment ALIGNMENT, size_t MAX_SIZE> 28 inline StackLikeAllocator<ALIGNMENT, MAX_SIZE>::StackLikeAllocator(bool usePoolManager, SpaceType spaceType) in StackLikeAllocator() 37 ->AllocPool(MAX_SIZE, spaceType, AllocatorType::STACK_LIKE_ALLOCATOR, this).GetMem(); in StackLikeAllocator() 41 MAX_SIZE, std::max(GetAlignmentInBytes(ALIGNMENT), static_cast<size_t>(ark::os::mem::GetPageSize()))); in StackLikeAllocator() 47 endAddr_ = ToVoidPtr(ToUintPtr(startAddr_) + MAX_SIZE); in StackLikeAllocator() 53 template <Alignment ALIGNMENT, size_t MAX_SIZE> 54 inline StackLikeAllocator<ALIGNMENT, MAX_SIZE>::~StackLikeAllocator() in ~StackLikeAllocator() 58 PoolManager::GetMmapMemPool()->FreePool(startAddr_, MAX_SIZE); in ~StackLikeAllocator() 60 ark::os::mem::UnmapRaw(startAddr_, MAX_SIZE); in ~StackLikeAllocator() 65 template <Alignment ALIGNMENT, size_t MAX_SIZE> [all...] |
H A D | stack_like_allocator.h | 30 template <Alignment ALIGNMENT = DEFAULT_FRAME_ALIGNMENT, size_t MAX_SIZE = STACK_LIKE_ALLOCATOR_DEFAUL_MAX_SIZE> 83 static_assert(MAX_SIZE % GetAlignmentInBytes(ALIGNMENT) == 0);
|
/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | panda_tl_containers_test.cpp | 58 constexpr size_t MAX_SIZE = InternalAllocator<>::LocalSmallObjectAllocator::GetMaxSize(); member 69 for (size_t i = 1; i < MAX_SIZE; i++) { in TEST_F() 70 vectorLocal.push_back(i % MAX_SIZE); in TEST_F() 71 if (vectorLocal.capacity() <= MAX_SIZE) { in TEST_F() 75 // When vector size exceeds MAX_SIZE=256 bytes, we allocate it without thread-local runslots allocator in TEST_F() 80 for (size_t i = 0; i < MAX_SIZE; i++) { in TEST_F() 81 ASSERT_EQ(vectorLocal.at(i), i % MAX_SIZE); in TEST_F() 84 // When vector size exceeds MAX_SIZE=256 bytes, we allocate it without thread-local runslots allocator in TEST_F() 99 for (size_t i = 1; i < MAX_SIZE; i++) { in TEST_F() 100 vectorGlobal.push_back(i % MAX_SIZE); in TEST_F() [all...] |
H A D | stack_like_allocator_test.cpp | 106 constexpr size_t MAX_SIZE = 256; in AlignmentTest() local 107 std::array<void *, MAX_SIZE + 1> array {nullptr}; in AlignmentTest() 108 for (size_t i = 1; i <= MAX_SIZE; i++) { in AlignmentTest() 117 for (size_t i = MAX_SIZE; i != 0; i--) { in AlignmentTest()
|
H A D | frame_allocator_test.cpp | 107 constexpr size_t MAX_SIZE = 256; in AlignmentTest() local 108 std::array<void *, MAX_SIZE + 1> array {nullptr}; in AlignmentTest() 109 for (size_t i = 1; i <= MAX_SIZE; i++) { in AlignmentTest() 118 for (size_t i = MAX_SIZE; i != 0; i--) { in AlignmentTest()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | runtime.h | 169 constexpr int32_t MAX_SIZE = 150; in CreateStringCacheTable() local 170 if ((size == 0) || (size > MAX_SIZE) || (externalRegisteredStringTable_ != nullptr)) { in CreateStringCacheTable() 172 LOG_ECMA(WARN) << "Currently, maximum size of the table is " << MAX_SIZE; in CreateStringCacheTable()
|
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/native/escompat/ |
H A D | Process.cpp | 156 constexpr int MAX_SIZE = 1024; in ReadChildProcessStdOut() local 157 std::array<int8_t, MAX_SIZE> buffer {}; in ReadChildProcessStdOut() 196 constexpr int MAX_SIZE = 1024; in ReadChildProcessStdErr() local 197 std::array<int8_t, MAX_SIZE> buffer {}; in ReadChildProcessStdErr()
|
Completed in 5 milliseconds