| /arkcompiler/ets_runtime/ecmascript/mem/ |
| D | heap-inl.h | 39 …object = reinterpret_cast<TaggedObject *>((space)->Allocate(size)); … 133 auto object = reinterpret_cast<TaggedObject *>(activeSemiSpace_->Allocate(size)); in AllocateYoungOrHugeObject() 136 object = reinterpret_cast<TaggedObject *>(activeSemiSpace_->Allocate(size)); in AllocateYoungOrHugeObject() 139 object = reinterpret_cast<TaggedObject *>(activeSemiSpace_->Allocate(size)); in AllocateYoungOrHugeObject() 175 auto object = reinterpret_cast<TaggedObject *>(activeSemiSpace_->Allocate(size)); in TryAllocateYoungGeneration() 194 auto object = reinterpret_cast<TaggedObject *>(oldSpace_->Allocate(size)); in AllocateOldOrHugeObject() 213 auto object = reinterpret_cast<TaggedObject *>(readOnlySpace_->Allocate(size)); in AllocateReadOnlyOrHugeObject() 232 auto object = reinterpret_cast<TaggedObject *>(nonMovableSpace_->Allocate(size)); in AllocateNonMovableOrHugeObject() 242 auto object = reinterpret_cast<TaggedObject *>(nonMovableSpace_->Allocate(size)); in AllocateClassClass() 244 LOG_ECMA_MEM(FATAL) << "Heap::AllocateClassClass can not allocate any space"; in AllocateClassClass() [all …]
|
| D | tlab_allocator-inl.h | 46 uintptr_t TlabAllocator::Allocate(size_t size, MemSpaceType space) in Allocate() function 72 uintptr_t result = youngAllocator_.Allocate(size); in AllocateInYoungSpace() 80 return youngAllocator_.Allocate(size); in AllocateInYoungSpace() 87 uintptr_t result = localSpace_->Allocate(size, true); in AllocateInCompressSpace() 96 // 1. Allocate from freelist in compress allocator in AllocateInOldSpace() 97 uintptr_t result = localSpace_->Allocate(size, false); in AllocateInOldSpace() 101 result = localSpace_->Allocate(size, true); in AllocateInOldSpace()
|
| D | allocator-inl.h | 51 uintptr_t BumpPointerAllocator::Allocate(size_t size) in Allocate() function 90 uintptr_t FreeListAllocator::Allocate(size_t size) in Allocate() function 92 auto ret = bpAllocator_.Allocate(size); in Allocate() 97 FreeObject *object = freeList_->Allocate(size); in Allocate() 99 ret = Allocate(object, size); in Allocate() 104 uintptr_t FreeListAllocator::Allocate(FreeObject *object, size_t size) in Allocate() function 118 auto ret = bpAllocator_.Allocate(size); in Allocate()
|
| D | chunk.h | 40 [[nodiscard]] void *Allocate(size_t size) in Allocate() function 60 return static_cast<T *>(Allocate(size * sizeof(T))); in NewArray() 66 auto p = reinterpret_cast<void *>(Allocate(sizeof(T))); in New() 104 return chunk->Allocate(size); in new()
|
| D | caddress_allocator.h | 72 pointer allocate(size_type n, [[maybe_unused]] const void *ptr = nullptr) 75 return static_cast<T *>(Allocate(n * sizeof(T))); 101 [[nodiscard]] void *Allocate(size_t size) in Allocate() function 119 auto p = reinterpret_cast<void *>(Allocate(sizeof(S))); in New() 137 return static_cast<T *>(Allocate(size * sizeof(T))); in AllocArray()
|
| D | allocator.h | 48 inline uintptr_t Allocate(size_t size); 94 inline uintptr_t Allocate(size_t size); 131 inline uintptr_t Allocate(FreeObject *object, size_t size);
|
| D | sparse_space.cpp | 52 uintptr_t SparseSpace::Allocate(size_t size, bool allowGC) in Allocate() function in panda::ecmascript::SparseSpace 54 auto object = allocator_->Allocate(size); in Allocate() 68 object = allocator_->Allocate(size); in Allocate() 75 object = Allocate(size, false); in Allocate() 100 auto object = allocator_->Allocate(size); in AllocateAfterSweepingCompleted() 107 return allocator_->Allocate(size); in AllocateAfterSweepingCompleted() 513 uintptr_t LocalSpace::Allocate(size_t size, bool isExpand) in Allocate() function in panda::ecmascript::LocalSpace 515 auto object = allocator_->Allocate(size); in Allocate() 518 object = allocator_->Allocate(size); in Allocate()
|
| D | linear_space.cpp | 31 uintptr_t LinearSpace::Allocate(size_t size, bool isPromoted) in Allocate() function in panda::ecmascript::LinearSpace 33 auto object = allocator_.Allocate(size); in Allocate() 41 object = allocator_.Allocate(size); in Allocate() 46 object = allocator_.Allocate(size); in Allocate() 152 return Allocate(size, true); in AllocateSync()
|
| D | parallel_marker-inl.h | 162 forwardAddress = workManager_->GetTlabAllocator(threadId)->Allocate(size, COMPRESS_SPACE); in AllocateDstSpace() 169 forwardAddress = workManager_->GetTlabAllocator(threadId)->Allocate(size, SEMI_SPACE); in AllocateDstSpace() 171 … forwardAddress = workManager_->GetTlabAllocator(threadId)->Allocate(size, COMPRESS_SPACE); in AllocateDstSpace() 285 uintptr_t forwardAddress = heap_->GetReadOnlySpace()->Allocate(size); in AllocateReadOnlySpace() 297 uintptr_t forwardAddress = heap_->GetAppSpawnSpace()->Allocate(size); in AllocateAppSpawnSpace()
|
| /arkcompiler/runtime_core/runtime/mem/ |
| D | heap_space.cpp | 95 // If saved pool size was very big and such pool can not be allocate after GC in ComputeNewSize() 96 // then we increase space to allocate this pool in ComputeNewSize() 116 // If can allocate pool (from free pool map or non-used memory) then just do it in WillAlloc() 121 …// If we allocate pool during GC work then we must allocate new pool anyway, so we wiil try to inc… in WillAlloc() 124 // allocate such pool, so we need to trigger GC in WillAlloc() 128 // In this case we need increase space for allocate new pool in WillAlloc() 145 // Increase heap space if needed and allocate pool in TryAllocPoolBase() 166 // Increase heap space if needed and allocate arena in TryAllocArenaBase() 264 // If saved pool size was very big and such pool can not be allocate in young after GC in ComputeNewYoung() 265 // then we increase young space to allocate this pool in ComputeNewYoung() [all …]
|
| D | frame_allocator-inl.h | 64 LOG_FRAME_ALLOCATOR(DEBUG) << "Try to allocate a new arena with size " << arena_size; in TryAllocateNewArena() 75 …LOG_FRAME_ALLOCATOR(DEBUG) << "Successfully allocate new arena with addr " << std::hex << new_aren… in TryAllocateNewArena() 87 …LOG_FRAME_ALLOCATOR(DEBUG) << "Can't allocate " << size << " bytes for a new frame in current aren… in Alloc() 89 LOG_FRAME_ALLOCATOR(DEBUG) << "Can't allocate a new arena, return nullptr"; in Alloc() 94 …LOG_FRAME_ALLOCATOR(DEBUG) << "Can't allocate memory in a totally free arena, change default arena… in Alloc() 137 // Try to allocate memory in the current arena: in TryToAllocate() 143 // We don't have enough memory in current arena, try to allocate in the next one: in TryToAllocate() 156 …LOG_FRAME_ALLOCATOR(DEBUG) << "Couldn't allocate " << size << " bytes of memory in the totally fre… in TryToAllocate()
|
| D | heap_space.h | 98 * \brief Try to allocate pool via PoolManager 104 * \brief Try to allocate arena via PoolManager 182 // so we save pool size and increase heap space to allocate such pool 206 * \brief Check that we can to allocate requested size into target space 238 …// if GC wants allocate memory, but we have not needed memory for this then we increase current he… 323 * @return true if we can allocate requested size in space 337 * \brief Allocate alone young pool (use for Gen-GC) with maximum possible size of young space 342 * \brief Try allocate pool for young space (use for G1-GC). 343 …* If free size in young space less requested pool size then pool can be allocate only during GC wo… 349 * \brief Try allocate pool for tenured space (use for generational-based GC). [all …]
|
| D | frame_allocator.h | 29 // Allocate arenas for frames Frames free Return arenas Second a… 91 * \brief Try to allocate an arena from the memory. 97 … * \brief Try to allocate memory for a frame in the current arena or in the next one if it exists. 109 * \brief Try to allocate an arena from the memory.
|
| D | internal_allocator.cpp | 71 LOG_INTERNAL_ALLOCATOR(DEBUG) << "Try to allocate " << size << " bytes"; in Alloc() 73 LOG_INTERNAL_ALLOCATOR(DEBUG) << "Failed to allocate - size of object is zero"; in Alloc() 85 LOG_INTERNAL_ALLOCATOR(DEBUG) << "Allocate " << size << " bytes at address " << std::hex << res; in Alloc() 153 … LOG_INTERNAL_ALLOCATOR(DEBUG) << "RunSlotsAllocator didn't allocate memory, try to add new pool"; in AllocInRunSlots() 160 …LOG_INTERNAL_ALLOCATOR(DEBUG) << "RunSlotsAllocator try to allocate memory again after pool adding… in AllocInRunSlots() 203 … LOG_INTERNAL_ALLOCATOR(DEBUG) << "FreeListAllocator didn't allocate memory, try to add new pool"; in AllocViaPandaAllocators() 225 …LOG_INTERNAL_ALLOCATOR(DEBUG) << "HumongousObjAllocator didn't allocate memory, try to add new poo… in AllocViaPandaAllocators()
|
| D | pygote_space_allocator.h | 38 STATE_PYGOTE_FORKING, // at first pygote fork, allocate for copied objects 39 STATE_PYGOTE_FORKED, // after fork, can't allocate/free objects in it
|
| D | heap_manager.cpp | 163 // Try to allocate an object via TLAB in AllocateMemoryForObject() 168 // We couldn't allocate an object via current TLAB, in AllocateMemoryForObject() 169 // Therefore, create a new one and allocate in it. in AllocateMemoryForObject() 179 if (mem == nullptr) { // if mem == nullptr, try to use common allocate scenario in AllocateMemoryForObject() 180 mem = objectAllocator_->Allocate(size, align, thread); in AllocateMemoryForObject()
|
| /arkcompiler/runtime_core/runtime/tests/ |
| D | allocator_test_base.h | 175 * \brief Allocate with one alignment 183 * Allocate all possible sizes from [MIN_ALLOC_SIZE, MAX_ALLOC_SIZE] with ALIGNMENT alignment 189 * \brief Allocate with all alignment 196 …* Allocate all possible sizes from [MIN_ALLOC_SIZE, MAX_ALLOC_SIZE] with all possible alignment fr… 204 * \brief Simple test for allocate and free 209 * Allocate elements with random values setting, check and free memory 218 * Allocate and use memory pools; free all elements from first, last 220 * and allocate smth again. 226 * \brief Allocate with different sizes and free in random order 233 …* Allocate elements with random size and random values setting in random order, check and free mem… [all …]
|
| D | freelist_allocator_test.cpp | 120 LOG(DEBUG, ALLOC) << "Allocate obj with size " << i << " at " << std::hex << mem; in TEST_F() 290 // Allocate first element in TEST_F() 294 // Allocate and use the whole alloc pool in TEST_F() 311 // Allocate first element again in TEST_F() 315 // Allocate again in TEST_F() 405 * We allocate 4 consecutive blocks and free the 3rd and 1st ones. After it we 406 * allocate block that needs alignment that leads to padding size is saved after
|
| D | region_allocator_test.cpp | 131 …<< "fail allocate object with size " << align_size << " with free size " << free_bytes_for_cur_reg; in AllocateRegularObject() 337 // allocate a large object in pool(not in initial block) in TEST_F() 347 // allocate a regular object which can't be allocated in current region in TEST_F() 406 // Allocate some objects (young and tenured) in allocator in TEST_F() 441 // Allocate some objects (young and tenured) in allocator in TEST_F() 486 // Check that we can still correctly allocate smth in tenured: in TEST_F() 490 // Check that we can still correctly allocate smth in tenured: in TEST_F() 503 // Allocate some objects (young and tenured) in allocator in TEST_F() 546 // Check that we can still correctly allocate smth in tenured: in TEST_F() 550 // Check that we can still correctly allocate smth in tenured: in TEST_F() [all …]
|
| D | panda_tl_containers_test.cpp | 72 …// When vector size exceeds MAX_SIZE=256 bytes, we allocate it without thread-local runslots alloc… in TEST_F() 81 …// When vector size exceeds MAX_SIZE=256 bytes, we allocate it without thread-local runslots alloc… in TEST_F()
|
| /arkcompiler/runtime_core/runtime/include/mem/ |
| D | allocator.h | 104 return Allocate(size, align, nullptr); 112 [[nodiscard]] virtual void *Allocate(size_t size, Alignment align, 123 return static_cast<T *>(this->Allocate(sizeof(T) * size, GetAlignment<T>(), nullptr)); in AllocArray() 291 * \brief Add new memory pools to object_allocator and allocate memory in them 298 * Try to allocate memory for the object and if failed add new memory pools and allocate again 457 …[[nodiscard]] void *Allocate(size_t size, Alignment align, [[maybe_unused]] panda::ManagedThread *… in Allocate() function 604 …[[nodiscard]] void *Allocate(size_t size, Alignment align, [[maybe_unused]] panda::ManagedThread *… 787 … void *Allocate(size_t size, Alignment align, [[maybe_unused]] panda::ManagedThread *thread) final;
|
| /arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
| D | newobj.yaml | 36 … Resolve class type from type_id, allocate memory for an object, initialize its fields with their 199 … Resolve class type from type_id, allocate memory for an object, initialize its fields with their 240 … Resolve class type from type_id, allocate memory for an object, initialize its fields with their 283 … Resolve class type from type_id, allocate memory for an object, initialize its fields with their 344 … Resolve class type from type_id, allocate memory for an object, initialize its fields with their 412 … Resolve class type from type_id, allocate memory for an object, initialize its fields with their 759 … Resolve class type from type_id, allocate memory for an object, initialize its fields with their 1133 … Resolve class type from type_id, allocate memory for an object, initialize its fields with their 1177 … Resolve class type from type_id, allocate memory for an object, initialize its fields with their
|
| /arkcompiler/runtime_core/libpandabase/mem/ |
| D | code_allocator.cpp | 49 trace::ScopedTrace scoped_trace("Allocate Code"); in AllocateCode() 62 trace::ScopedTrace scoped_trace("Allocate Code"); in AllocateCodeUnprotected()
|
| D | arena_allocator.h | 189 * \brief Allocate new element. 190 …* Try to allocate new element at current arena or try to add new pool to this allocator and alloca…
|
| /arkcompiler/runtime_core/compiler/docs/ |
| D | balance_expressions_doc.md | 21 …mal-critical-path), delete expression's operators from the basic block, allocate them to expressio… 38 …`lhs` and `rhs` equal to results of recursive calls `allocate(first_idx, split_idx)` and `allocat…
|