/arkcompiler/runtime_core/static_core/runtime/coretypes/ |
H A D | array.cpp | 38 vm->GetHeapManager()->AllocateObject(arrayClass, size, DEFAULT_ALIGNMENT, ManagedThread::GetCurrent(), in AllocateArray() 43 arrayClass, size, DEFAULT_ALIGNMENT, ManagedThread::GetCurrent())); in AllocateArray()
|
/arkcompiler/runtime_core/static_core/runtime/mem/ |
H A D | internal_allocator.h | 70 [[nodiscard]] void *Alloc(size_t size, Alignment align = DEFAULT_ALIGNMENT); 72 [[nodiscard]] void *AllocLocal(size_t size, Alignment align = DEFAULT_ALIGNMENT) in AllocLocal() argument
|
H A D | malloc-proxy-allocator.h | 47 [[nodiscard]] void *Alloc(size_t size, Alignment align = DEFAULT_ALIGNMENT);
|
H A D | heap_manager.h | 54 BaseClass *cls, size_t size, Alignment align = DEFAULT_ALIGNMENT, ManagedThread *thread = nullptr, 60 BaseClass *cls, size_t size, Alignment align = DEFAULT_ALIGNMENT, ManagedThread *thread = nullptr,
|
H A D | pygote_space_allocator.h | 50 void *Alloc(size_t size, Alignment alignment = ark::DEFAULT_ALIGNMENT);
|
H A D | bump-allocator.h | 81 [[nodiscard]] void *Alloc(size_t size, Alignment alignment = ark::DEFAULT_ALIGNMENT);
|
H A D | region_allocator.h | 180 void *Alloc(size_t size, Alignment align = DEFAULT_ALIGNMENT, bool pinned = false); 534 void *Alloc(size_t size, Alignment align = DEFAULT_ALIGNMENT); 605 void *Alloc(size_t size, Alignment align = DEFAULT_ALIGNMENT);
|
H A D | humongous_obj_allocator.h | 77 [[nodiscard]] void *Alloc(size_t size, Alignment align = DEFAULT_ALIGNMENT);
|
H A D | region_allocator-inl.h | 229 ASSERT(GetAlignmentInBytes(align) % GetAlignmentInBytes(DEFAULT_ALIGNMENT) == 0); in Alloc() 288 ASSERT(AlignUp(size, GetAlignmentInBytes(DEFAULT_ALIGNMENT)) == size); in CreateTLAB() 597 ASSERT(GetAlignmentInBytes(align) % GetAlignmentInBytes(DEFAULT_ALIGNMENT) == 0); in Alloc() 694 ASSERT(GetAlignmentInBytes(align) % GetAlignmentInBytes(DEFAULT_ALIGNMENT) == 0); in Alloc()
|
H A D | freelist_allocator.h | 36 static constexpr Alignment FREELIST_DEFAULT_ALIGNMENT = DEFAULT_ALIGNMENT;
|
H A D | runslots_allocator.h | 85 [[nodiscard]] void *Alloc(size_t size, Alignment align = DEFAULT_ALIGNMENT);
|
H A D | bump-allocator-inl.h | 83 ASSERT(alignment == DEFAULT_ALIGNMENT); in Alloc() 85 // (each element allocated via BumpPointer allocator has DEFAULT_ALIGNMENT alignment). in Alloc()
|
/arkcompiler/runtime_core/libpandabase/mem/ |
H A D | mem.h | 131 constexpr Alignment DEFAULT_ALIGNMENT = GetLogAlignment(alignof(uintptr_t)); member 132 constexpr size_t DEFAULT_ALIGNMENT_IN_BYTES = GetAlignmentInBytes(DEFAULT_ALIGNMENT);
|
H A D | arena.h | 26 constexpr Alignment ARENA_DEFAULT_ALIGNMENT = DEFAULT_ALIGNMENT;
|
/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | region_allocator_test.cpp | 134 size_t alignSize = AlignUp(size, GetAlignmentInBytes(DEFAULT_ALIGNMENT)); in AllocateRegularObject() 146 ASSERT(freeBytesForCurReg % GetAlignmentInBytes(DEFAULT_ALIGNMENT) == 0); in AllocateRegularObject() 158 size_t allocSize = AlignUp(size, GetAlignmentInBytes(DEFAULT_ALIGNMENT)); in AllocateLargeObject() 170 auto alignSize = AlignUp(size, GetAlignmentInBytes(DEFAULT_ALIGNMENT)); in AllocateYoungRegular() 262 ASSERT(freeBytesForCurReg % GetAlignmentInBytes(DEFAULT_ALIGNMENT) == 0); in TEST_F() 264 size_t alignSize = AlignUp(size, GetAlignmentInBytes(DEFAULT_ALIGNMENT)); in TEST_F() 289 NonObjectRegionAllocator::GetMaxRegularObjectSize() + 128UL, DEFAULT_ALIGNMENT>(1UL, in TEST_F()
|
H A D | bump_allocator_test.cpp | 121 Alignment align = DEFAULT_ALIGNMENT; in DEATH_TEST_F() 144 static_assert(LOG_ALIGN_MAX != DEFAULT_ALIGNMENT, "We expect minimal alignment != DEFAULT_ALIGNMENT"); in DEATH_TEST_F() 147 EXPECT_DEATH_IF_SUPPORTED(ptr = bpAllocator.Alloc(sizeof(int), LOG_ALIGN_MAX), "alignment == DEFAULT_ALIGNMENT") in DEATH_TEST_F()
|
H A D | class_linker_test_extension.h | 84 void *ptr = allocator->AllocateNonMovable(coretypes::Class::GetSize(size), DEFAULT_ALIGNMENT, nullptr,
|
H A D | tlab_test.cpp | 81 // NOTE: All objects, allocated in Runtime, must have the DEFAULT_ALIGNMENT alignment. in TEST_F() 97 Alignment align = DEFAULT_ALIGNMENT;
|
H A D | humongous_obj_allocator_test.cpp | 110 static constexpr Alignment OBJECT_ALIGNMENT = DEFAULT_ALIGNMENT; in TEST_F()
|
H A D | epsilon_gcs_test.cpp | 236 Region::RegionSize(AlignUp(hugeStringSize, GetAlignmentInBytes(DEFAULT_ALIGNMENT)), G1_REGION_SIZE); in TEST_F()
|
/arkcompiler/runtime_core/static_core/libpandabase/mem/ |
H A D | mem.h | 136 constexpr Alignment DEFAULT_ALIGNMENT = GetLogAlignment(sizeof(uint64_t)); member 137 constexpr size_t DEFAULT_ALIGNMENT_IN_BYTES = GetAlignmentInBytes(DEFAULT_ALIGNMENT);
|
H A D | arena.h | 26 constexpr Alignment ARENA_DEFAULT_ALIGNMENT = DEFAULT_ALIGNMENT;
|
/arkcompiler/runtime_core/static_core/runtime/include/mem/ |
H A D | allocator-inl.h | 62 Alignment align = DEFAULT_ALIGNMENT; in AllocateTenuredImpl()
|
/arkcompiler/runtime_core/static_core/runtime/mem/gc/heap-space-misc/ |
H A D | crossing_map.h | 129 static constexpr Alignment CROSSING_MAP_OBJ_ALIGNMENT = DEFAULT_ALIGNMENT;
|
/arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/ |
H A D | g1-allocator.cpp | 201 mem = humongousObjectAllocator_->Alloc(size, DEFAULT_ALIGNMENT); in Allocate()
|