Home
last modified time | relevance | path

Searched refs:alloc_size (Results 1 - 2 of 2) sorted by relevance

/arkcompiler/runtime_core/libpandabase/tests/
H A Darena_test.cpp52 void GetOccupiedAndFreeSizeTestImplementation(size_t arena_size, size_t alloc_size) in GetOccupiedAndFreeSizeTestImplementation() argument
55 ASSERT_TRUE(alloc_size != 0); in GetOccupiedAndFreeSizeTestImplementation()
58 ASSERT_TRUE(arena->Alloc(alloc_size) != nullptr); in GetOccupiedAndFreeSizeTestImplementation()
59 ASSERT_TRUE(arena->GetOccupiedSize() == alloc_size); in GetOccupiedAndFreeSizeTestImplementation()
60 ASSERT_TRUE(old_free_size - alloc_size == arena->GetFreeSize()); in GetOccupiedAndFreeSizeTestImplementation()
64 void ResizeAndResetTestImplementation(size_t arena_size, size_t alloc_size) in ResizeAndResetTestImplementation() argument
68 ASSERT_TRUE(alloc_size != 0); in ResizeAndResetTestImplementation()
70 ASSERT_TRUE(alloc_size * immTwo <= arena->GetFreeSize()); in ResizeAndResetTestImplementation()
71 void *first_allocation = arena->Alloc(alloc_size); in ResizeAndResetTestImplementation()
72 void *second_allocation = arena->Alloc(alloc_size); in ResizeAndResetTestImplementation()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/
H A Delf_checker.cpp160 size_t alloc_size = sizeof(Elf) + extra; in ElfAllocate() local
161 Elf* result = reinterpret_cast<Elf*>(new char[alloc_size]()); in ElfAllocate()

Completed in 3 milliseconds