Home
last modified time | relevance | path

Searched refs:PANDA_POOL_ALIGNMENT_IN_BYTES (Results 1 – 8 of 8) sorted by relevance

/arkcompiler/runtime_core/libpandabase/mem/
Dmem.h192 constexpr size_t PANDA_POOL_ALIGNMENT_IN_BYTES = 256_KB; variable
197 static_assert(PANDA_DEFAULT_POOL_SIZE % PANDA_POOL_ALIGNMENT_IN_BYTES == 0);
198 static_assert(PANDA_DEFAULT_ARENA_SIZE % PANDA_POOL_ALIGNMENT_IN_BYTES == 0);
199 static_assert(PANDA_DEFAULT_ALLOCATOR_POOL_SIZE % PANDA_POOL_ALIGNMENT_IN_BYTES == 0);
203 constexpr uintptr_t PANDA_32BITS_HEAP_START_ADDRESS = AlignUp(1U, PANDA_POOL_ALIGNMENT_IN_BYTES);
Dmmap_mem_pool-inl.h135 …= panda::os::mem::MapRWAnonymousWithAlignmentRaw(object_space_size, PANDA_POOL_ALIGNMENT_IN_BYTES); in MmapMemPool()
139 ASSERT(AlignUp(ToUintPtr(mem), PANDA_POOL_ALIGNMENT_IN_BYTES) == ToUintPtr(mem)); in MmapMemPool()
218 mem = panda::os::mem::MapRWAnonymousWithAlignmentRaw(size, PANDA_POOL_ALIGNMENT_IN_BYTES); in AllocRawMemCompilerImpl()
232 mem = panda::os::mem::MapRWAnonymousWithAlignmentRaw(size, PANDA_POOL_ALIGNMENT_IN_BYTES); in AllocRawMemInternalImpl()
246 mem = panda::os::mem::MapRWAnonymousWithAlignmentRaw(size, PANDA_POOL_ALIGNMENT_IN_BYTES); in AllocRawMemCodeImpl()
270 ASSERT(size == AlignUp(size, PANDA_POOL_ALIGNMENT_IN_BYTES)); in AllocRawMemImpl()
316 ASSERT(size == AlignUp(size, PANDA_POOL_ALIGNMENT_IN_BYTES)); in AllocPoolUnsafe()
361 …ASSERT(AlignUp(ToUintPtr(pool.GetMem()), PANDA_POOL_ALIGNMENT_IN_BYTES) == ToUintPtr(pool.GetMem()… in AllocPoolUnsafe()
Dpool_map.h90 static constexpr size_t POOL_MAP_GRANULARITY = PANDA_POOL_ALIGNMENT_IN_BYTES;
Darena_allocator.cpp157 pool_size = AlignUp(pool_size, PANDA_POOL_ALIGNMENT_IN_BYTES); in AddArenaFromPool()
/arkcompiler/ets_runtime/ecmascript/mem/
Dheap_region_allocator.cpp25 constexpr size_t PANDA_POOL_ALIGNMENT_IN_BYTES = 256_KB; variable
52 …LOG_ECMA_IF(AlignUp(mem, PANDA_POOL_ALIGNMENT_IN_BYTES) != mem, FATAL) << "region not align by 256… in AllocateAlignedRegion()
Dspace.cpp90 …ze = AlignUp(objectSize + sizeof(Region) + HUGE_OBJECT_BITSET_SIZE, PANDA_POOL_ALIGNMENT_IN_BYTES); in Allocate()
/arkcompiler/runtime_core/libpandabase/tests/
Dpool_map_test.cpp44 static constexpr size_t MINIMAL_POOL_SIZE = PANDA_POOL_ALIGNMENT_IN_BYTES;
172 static constexpr uintptr_t POOL_START_ADDR = PANDA_POOL_ALIGNMENT_IN_BYTES;
174 size_t pool_size = AlignUp(rand() % MAX_POOL_SIZE, PANDA_POOL_ALIGNMENT_IN_BYTES);
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/
Dsnapshot_processor.cpp1298 … size_t alignedHugeRegionSize = AlignUp(objSize + sizeof(Region), PANDA_POOL_ALIGNMENT_IN_BYTES); in DeserializeHugeSpaceObject()