Home
last modified time | relevance | path

Searched full:allocate (Results 1 – 25 of 218) sorted by relevance

123456789

/arkcompiler/ets_runtime/ecmascript/mem/
Dtlab_allocator-inl.h47 uintptr_t TlabAllocator::Allocate(size_t size, MemSpaceType space) in Allocate() function
74 uintptr_t result = youngAllocator_.Allocate(size); in AllocateInYoungSpace()
82 return youngAllocator_.Allocate(size); in AllocateInYoungSpace()
89 uintptr_t result = localSpace_->Allocate(size, true); in AllocateInCompressSpace()
98 // 1. Allocate from freelist in compress allocator in AllocateInOldSpace()
99 uintptr_t result = localSpace_->Allocate(size, false); in AllocateInOldSpace()
105 result = localSpace_->Allocate(size, true); in AllocateInOldSpace()
155 uintptr_t SharedTlabAllocator::Allocate(size_t size, MemSpaceType space) in Allocate() function
173 uintptr_t result = sLocalSpace_->Allocate(size, true); in AllocateInCompressSpace()
Dsparse_space.cpp52 uintptr_t SparseSpace::Allocate(size_t size, bool allowGC) in Allocate() function in panda::ecmascript::SparseSpace
56 LOG_ECMA(FATAL) << "Allocate must be in jsthread running state"; in Allocate()
60 auto object = allocator_->Allocate(size); in Allocate()
70 object = allocator_->Allocate(size); in Allocate()
75 object = allocator_->Allocate(size); in Allocate()
81 object = Allocate(size, false); in Allocate()
104 auto object = allocator_->Allocate(size); in AllocateAfterSweepingCompleted()
111 return allocator_->Allocate(size); in AllocateAfterSweepingCompleted()
583 return Allocate(size); in CheckAndAllocate()
606 uintptr_t LocalSpace::Allocate(size_t size, bool isExpand) in Allocate() function in panda::ecmascript::LocalSpace
[all …]
Dchunk.h42 [[nodiscard]] void *Allocate(size_t size) in Allocate() function
62 return static_cast<T *>(Allocate(size * sizeof(T))); in NewArray()
68 auto p = reinterpret_cast<void *>(Allocate(sizeof(T))); in New()
108 return chunk->Allocate(size); in new()
Dheap-inl.h46 …(object) = reinterpret_cast<TaggedObject *>((space)->Allocate(size)); …
55 …(object) = reinterpret_cast<TaggedObject *>((space)->Allocate(thread, size)); …
64 …(object) = reinterpret_cast<TaggedObject *>((space)->Allocate(size, desc)); …
73 …(object) = reinterpret_cast<TaggedObject *>((space)->Allocate(size)); …
234 auto object = reinterpret_cast<TaggedObject *>(edenSpace_->Allocate(size)); in AllocateInGeneralNewSpace()
239 return reinterpret_cast<TaggedObject *>(activeSemiSpace_->Allocate(size)); in AllocateInGeneralNewSpace()
298 auto object = reinterpret_cast<TaggedObject *>(activeSemiSpace_->Allocate(size)); in TryAllocateYoungGeneration()
328 object = reinterpret_cast<TaggedObject *>(oldSpace_->Allocate(size)); in AllocateOldOrHugeObject()
355 object = reinterpret_cast<TaggedObject *>(readOnlySpace_->Allocate(size)); in AllocateReadOnlyOrHugeObject()
399 auto object = reinterpret_cast<TaggedObject *>(nonMovableSpace_->Allocate(size)); in AllocateClassClass()
[all …]
Dcaddress_allocator.h73 pointer allocate(size_type n, [[maybe_unused]] const void *ptr = nullptr)
76 return static_cast<T *>(Allocate(n * sizeof(T)));
102 [[nodiscard]] void *Allocate(size_t size) in Allocate() function
120 auto p = reinterpret_cast<void *>(Allocate(sizeof(S))); in New()
138 return static_cast<T *>(Allocate(size * sizeof(T))); in AllocArray()
Dallocator-inl.h61 uintptr_t BumpPointerAllocator::Allocate(size_t size) in Allocate() function
105 uintptr_t FreeListAllocator<T>::Allocate(size_t size) in Allocate() function
107 auto ret = bpAllocator_.Allocate(size); in Allocate()
112 T *object = freeList_->Allocate(size); in Allocate()
114 ret = Allocate(object, size); in Allocate()
121 uintptr_t FreeListAllocator<T>::Allocate(T *object, size_t size) in Allocate() function
138 auto ret = bpAllocator_.Allocate(size); in Allocate()
Dspace.cpp79 …// regions of EdenSpace are allocated in EdenSpace constructor and fixed, not allocate by heapRegi… in ClearAndFreeRegion()
161 uintptr_t HugeMachineCodeSpace::Allocate(size_t objectSize, JSThread *thread, void *pDesc, in Allocate() function in panda::ecmascript::HugeMachineCodeSpace
167 LOG_ECMA(FATAL) << "Allocate must be in jsthread running state"; in Allocate()
182 LOG_GC(ERROR) << "HugeMachineCodeSpace::Allocate: region is nullptr"; in Allocate()
194 uintptr_t HugeMachineCodeSpace::Allocate(size_t objectSize, JSThread *thread) in Allocate() function in panda::ecmascript::HugeMachineCodeSpace
197 return HugeObjectSpace::Allocate(objectSize, thread); in Allocate()
200 uintptr_t HugeObjectSpace::Allocate(size_t objectSize, JSThread *thread, AllocateEventType allocTyp… in Allocate() function in panda::ecmascript::HugeObjectSpace
204 LOG_ECMA(FATAL) << "Allocate must be in jsthread running state"; in Allocate()
Dlinear_space.cpp31 uintptr_t LinearSpace::Allocate(size_t size, bool isPromoted) in Allocate() function in panda::ecmascript::LinearSpace
35 LOG_ECMA(FATAL) << "Allocate must be in jsthread running state"; in Allocate()
39 auto object = allocator_.Allocate(size); in Allocate()
55 object = allocator_.Allocate(size); in Allocate()
69 object = allocator_.Allocate(size); in Allocate()
220 return Allocate(size); in AllocateSync()
223 uintptr_t EdenSpace::Allocate(size_t size) in Allocate() function in panda::ecmascript::EdenSpace
228 auto object = allocator_.Allocate(size); in Allocate()
242 object = allocator_.Allocate(size); in Allocate()
380 return Allocate(size, true); in AllocateSync()
Dallocator.h50 inline uintptr_t Allocate(size_t size);
98 inline uintptr_t Allocate(size_t size);
136 inline uintptr_t Allocate(T *object, size_t size);
Dtlab_allocator.h46 inline uintptr_t Allocate(size_t size, MemSpaceType space);
79 inline uintptr_t Allocate(size_t size, MemSpaceType space);
Dthread_local_allocation_buffer.h37 uintptr_t Allocate(size_t size) in Allocate() function
39 return bpAllocator_.Allocate(size); in Allocate()
Djit_fort.cpp87 uintptr_t JitFort::Allocate(MachineCodeDesc *desc) in Allocate() function in panda::ecmascript::JitFort
92 auto ret = allocator_->Allocate(size); in Allocate()
95 LOG_JIT(DEBUG) << "JitFort: Allocate - AddRegion"; in Allocate()
96 ret = allocator_->Allocate(size); in Allocate()
100 LOG_JIT(DEBUG) << "JitFort:: Allocate return nullptr for size " << size; in Allocate()
107 LOG_JIT(DEBUG) << "JitFort:: Allocate " << (void *)ret << " - " << (void *)(ret+size-1) << in Allocate()
Dsparse_space.h67 uintptr_t Allocate(size_t size, bool allowGC = true);
260 uintptr_t Allocate(size_t size, bool isExpand = true);
278 uintptr_t Allocate(size_t size, bool allowGC = true);
279 uintptr_t Allocate(size_t size, MachineCodeDesc *desc, bool allowGC = true);
/arkcompiler/ets_runtime/ecmascript/mem/shared_heap/
Dshared_space.cpp59 uintptr_t SharedSparseSpace::Allocate(JSThread *thread, size_t size, bool allowGC) in Allocate() function in panda::ecmascript::SharedSparseSpace
63 LOG_ECMA(FATAL) << "Allocate must be in jsthread running state"; in Allocate()
67 …// Shared old space cannot use this allocate func. Shared full gc may happen in trigger and thread… in Allocate()
90 object = Allocate(thread, size, false); in Allocate()
113 LOG_ECMA(FATAL) << "Allocate must be in jsthread running state"; in AllocateNoGCAndExpand()
128 uintptr_t object = allocator_->Allocate(size); in TryAllocate()
136 // In order to avoid expand twice by different threads, try allocate first. in AllocateWithExpand()
138 auto object = allocator_->Allocate(size); in AllocateWithExpand()
140 object = allocator_->Allocate(size); in AllocateWithExpand()
186 object = allocator_->Allocate(size); in AllocateAfterSweepingCompleted()
[all …]
Dshared_space.h45 uintptr_t Allocate(JSThread *thread, size_t size, bool allowGC = true);
176 uintptr_t Allocate(size_t size, bool isExpand = true);
206 uintptr_t Allocate(JSThread *thread, size_t size);
226 …uintptr_t Allocate(JSThread *thread, size_t objectSize, AllocateEventType allocType = AllocateEven…
/arkcompiler/runtime_core/static_core/runtime/tests/
Dallocator_test_base.h171 * @brief Allocate with one alignment
179 * Allocate all possible sizes from [MIN_ALLOC_SIZE, MAX_ALLOC_SIZE] with ALIGNMENT alignment
196 ASSERT_TRUE(mem != nullptr) << "Didn't allocate " << size << " bytes with " in OneAlignedAllocFreeTest()
213 * @brief Allocate with all alignment
220 …* Allocate all possible sizes from [MIN_ALLOC_SIZE, MAX_ALLOC_SIZE] with all possible alignment fr…
245 … << "Didn't allocate " << size << " bytes with " << align << " log alignment, seed: " << seed_;
265 * @brief Simple test for allocate and free
270 * Allocate elements with random values setting, check and free memory
284 ASSERT_TRUE(mem != nullptr) << "Didn't allocate " << allocSize << " bytes in " << i
303 * Allocate and use memory pools; free all elements from first, last
[all …]
/arkcompiler/runtime_core/static_core/runtime/mem/
Dheap_space.cpp99 // If saved pool size was very big and such pool can not be allocate after GC in ComputeNewSize()
100 // then we increase space to allocate this pool in ComputeNewSize()
120 // If can allocate pool (from free pool map or non-used memory) then just do it in WillAlloc()
125 …// If we allocate pool during GC work then we must allocate new pool anyway, so we will try to inc… in WillAlloc()
128 // allocate such pool, so we need to trigger GC in WillAlloc()
132 // In this case we need increase space for allocate new pool in WillAlloc()
157 // Increase heap space if needed and allocate pool in TryAllocPoolBase()
183 // Increase heap space if needed and allocate arena in TryAllocArenaBase()
284 // If saved pool size was very big and such pool can not be allocate in young after GC in ComputeNewYoung()
285 // then we increase young space to allocate this pool in ComputeNewYoung()
[all …]
Dframe_allocator-inl.h66 LOG_FRAME_ALLOCATOR(DEBUG) << "Try to allocate a new arena with size " << arenaSize; in TryAllocateNewArena()
77 …LOG_FRAME_ALLOCATOR(DEBUG) << "Successfully allocate new arena with addr " << std::hex << newArena; in TryAllocateNewArena()
89 …LOG_FRAME_ALLOCATOR(DEBUG) << "Can't allocate " << size << " bytes for a new frame in current aren… in Alloc()
91 LOG_FRAME_ALLOCATOR(DEBUG) << "Can't allocate a new arena, return nullptr"; in Alloc()
96 …LOG_FRAME_ALLOCATOR(DEBUG) << "Can't allocate memory in a totally free arena, change default arena… in Alloc()
139 // Try to allocate memory in the current arena: in TryToAllocate()
145 // We don't have enough memory in current arena, try to allocate in the next one: in TryToAllocate()
158 …LOG_FRAME_ALLOCATOR(DEBUG) << "Couldn't allocate " << size << " bytes of memory in the totally fre… in TryToAllocate()
Dheap_space.h93 /// @brief Try to allocate pool via PoolManager
97 /// @brief Try to allocate arena via PoolManager
178 // so we save pool size and increase heap space to allocate such pool
202 * @brief Check that we can to allocate requested size into target space
230 …// if GC wants allocate memory, but we have not needed memory for this then we increase current he…
315 * @return true if we can allocate requested size in space
328 /// @brief Allocate alone young pool (use for Gen-GC) with maximum possible size of young space
332 * @brief Try allocate pool for young space (use for G1-GC).
333 …* If free size in young space less requested pool size then pool can be allocate only during GC wo…
339 * @brief Try allocate pool for tenured space (use for generational-based GC).
[all …]
Dframe_allocator.h29 // Allocate arenas for frames Frames free Return arenas Second a…
89 * @brief Try to allocate an arena from the memory.
95 … * @brief Try to allocate memory for a frame in the current arena or in the next one if it exists.
105 * @brief Try to allocate an arena from the memory.
Dinternal_allocator.cpp71 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()
200 … LOG_INTERNAL_ALLOCATOR(DEBUG) << "FreeListAllocator didn't allocate memory, try to add new pool"; in AllocViaFreeListAllocator()
228 …LOG_INTERNAL_ALLOCATOR(DEBUG) << "HumongousObjAllocator didn't allocate memory, try to add new poo… in AllocViaHumongousAllocator()
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/passes/
Ddevirt.cpp44 auto allocate = llvm::dyn_cast<llvm::CallInst>(thisArg); in GetObjectClassId() local
46 if (allocate == nullptr || allocate->arg_size() == 0) { in GetObjectClassId()
49 auto loadAndInit = llvm::dyn_cast<llvm::CallInst>(allocate->getArgOperand(0)); in GetObjectClassId()
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DGC.sts187 * Allocate array of boolean and pin (GC will not move pinned array)
204 * Allocate array of byte and pin (GC will not move pinned array)
221 * Allocate array of char and pin (GC will not move pinned array)
238 * Allocate array of short and pin (GC will not move pinned array)
255 * Allocate array of int and pin (GC will not move pinned array)
272 * Allocate array of long and pin (GC will not move pinned array)
289 * Allocate array of float and pin (GC will not move pinned array)
306 * Allocate array of double and pin (GC will not move pinned array)
/arkcompiler/runtime_core/static_core/runtime/include/mem/
Dallocator.h102 return Allocate(size, CalculateAllocatorAlignment(alignof(uintptr_t)), nullptr); in Alloc()
107 return Allocate(size, align, nullptr); in Alloc()
120 …[[nodiscard]] virtual void *Allocate(size_t size, Alignment align, [[maybe_unused]] ark::ManagedTh…
128 …return static_cast<T *>(this->Allocate(sizeof(T) * size, CalculateAllocatorAlignment(alignof(T)), … in AllocArray()
296 /// @brief Add new memory pools to object_allocator and allocate memory in them
302 * Try to allocate memory for the object and if failed add new memory pools and allocate again
338 void *Allocate([[maybe_unused]] size_t size, [[maybe_unused]] Alignment align, in Allocate() function
342 …<< "Don't use common Allocate method for object allocation without object initialization argument"; in Allocate()
346 [[nodiscard]] virtual void *Allocate(size_t size, Alignment align, ark::ManagedThread *thread,
494 …[[nodiscard]] void *Allocate(size_t size, Alignment align, [[maybe_unused]] ark::ManagedThread *th… in Allocate() function
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/
Dets_napi_env.cpp29 return Unexpected("Cannot allocate EtsReferenceStorage"); in Create()
35 return Unexpected("Cannot allocate PandaEtsNapiEnv"); in Create()

123456789