Home
last modified time | relevance | path

Searched full:allocate (Results 1 – 25 of 221) 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.cpp53 uintptr_t SparseSpace::Allocate(size_t size, bool allowGC) in Allocate() function in panda::ecmascript::SparseSpace
58 LOG_ECMA(FATAL) << "Allocate must be in jsthread running state"; in Allocate()
62 auto object = allocator_->Allocate(size); in Allocate()
72 object = allocator_->Allocate(size); in Allocate()
77 object = allocator_->Allocate(size); in Allocate()
83 object = Allocate(size, false); in Allocate()
107 auto object = allocator_->Allocate(size); in AllocateAfterSweepingCompleted()
114 return allocator_->Allocate(size); in AllocateAfterSweepingCompleted()
420 LOG_ECMA(FATAL) << "Allocate must be in jsthread running state"; in AllocateFast()
424 auto object = allocator_->Allocate(size); in AllocateFast()
[all …]
Dchunk.h41 [[nodiscard]] void *Allocate(size_t size) in Allocate() function
61 return static_cast<T *>(Allocate(size * sizeof(T))); in NewArray()
67 auto p = reinterpret_cast<void *>(Allocate(sizeof(T))); in New()
107 return chunk->Allocate(size); in new()
Dheap-inl.h49 …(object) = reinterpret_cast<TaggedObject *>((space)->Allocate(size)); …
58 …(object) = reinterpret_cast<TaggedObject *>((space)->Allocate(thread, size)); …
67 …(object) = reinterpret_cast<TaggedObject *>((space)->Allocate(size, desc)); …
76 …(object) = reinterpret_cast<TaggedObject *>((space)->Allocate(size)); …
228 return reinterpret_cast<TaggedObject *>(activeSemiSpace_->Allocate(size)); in AllocateInYoungSpace()
292 auto object = reinterpret_cast<TaggedObject *>(activeSemiSpace_->Allocate(size)); in TryAllocateYoungGeneration()
356 object = reinterpret_cast<TaggedObject *>(readOnlySpace_->Allocate(size)); in AllocateReadOnlyOrHugeObject()
400 auto object = reinterpret_cast<TaggedObject *>(nonMovableSpace_->Allocate(size)); in AllocateClassClass()
402 LOG_ECMA_MEM(FATAL) << "Heap::AllocateClassClass can not allocate any space"; in AllocateClassClass()
415 auto object = reinterpret_cast<TaggedObject *>(sReadOnlySpace_->Allocate(thread, 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()
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);
Dspace.cpp165 uintptr_t HugeMachineCodeSpace::Allocate(size_t objectSize, JSThread *thread, void *pDesc, in Allocate() function in panda::ecmascript::HugeMachineCodeSpace
173 LOG_ECMA(FATAL) << "Allocate must be in jsthread running state"; in Allocate()
188 LOG_GC(ERROR) << "HugeMachineCodeSpace::Allocate: region is nullptr"; in Allocate()
200 uintptr_t HugeMachineCodeSpace::Allocate(size_t objectSize, JSThread *thread) in Allocate() function in panda::ecmascript::HugeMachineCodeSpace
203 return HugeObjectSpace::Allocate(objectSize, thread); in Allocate()
206 uintptr_t HugeObjectSpace::Allocate(size_t objectSize, JSThread *thread, AllocateEventType allocTyp… in Allocate() function in panda::ecmascript::HugeObjectSpace
210 LOG_ECMA(FATAL) << "Allocate must be in jsthread running state"; in Allocate()
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()
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()
58 object = allocator_.Allocate(size); in Allocate()
73 object = allocator_.Allocate(size); in Allocate()
212 return Allocate(size, true); in AllocateSync()
Djit_fort.cpp100 uintptr_t JitFort::Allocate(MachineCodeDesc *desc) in Allocate() function in panda::ecmascript::JitFort
105 auto ret = allocator_->Allocate(size); in Allocate()
108 LOG_JIT(DEBUG) << "JitFort: Allocate - AddRegion"; in Allocate()
109 ret = allocator_->Allocate(size); in Allocate()
113 LOG_JIT(DEBUG) << "JitFort:: Allocate return nullptr for size " << size; in Allocate()
121 LOG_JIT(DEBUG) << "JitFort:: Allocate " << (void *)ret << " - " << (void *)(ret+size-1) << in Allocate()
147 // Called by Jit Compile thread during JitFort Allocate to mark Fort buf
/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/ets_runtime/ecmascript/mem/shared_heap/
Dshared_space.cpp57 uintptr_t SharedSparseSpace::Allocate(JSThread *thread, size_t size, bool allowGC) in Allocate() function in panda::ecmascript::SharedSparseSpace
61 LOG_ECMA(FATAL) << "Allocate must be in jsthread running state"; in Allocate()
65 …// Shared old space cannot use this allocate func. Shared full gc may happen in trigger and thread… in Allocate()
88 object = Allocate(thread, size, false); in Allocate()
111 LOG_ECMA(FATAL) << "Allocate must be in jsthread running state"; in AllocateNoGCAndExpand()
126 uintptr_t object = allocator_->Allocate(size); in TryAllocate()
134 // In order to avoid expand twice by different threads, try allocate first. in AllocateWithExpand()
136 auto object = allocator_->Allocate(size); in AllocateWithExpand()
138 object = allocator_->Allocate(size); in AllocateWithExpand()
184 object = allocator_->Allocate(size); in AllocateAfterSweepingCompleted()
[all …]
Dshared_space.h45 uintptr_t Allocate(JSThread *thread, size_t size, bool allowGC = true);
203 uintptr_t Allocate(size_t size, bool isExpand = true);
235 uintptr_t Allocate(JSThread *thread, size_t size);
255 …uintptr_t Allocate(JSThread *thread, size_t objectSize, AllocateEventType allocType = AllocateEven…
/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.h67 LOG_FRAME_ALLOCATOR(DEBUG) << "Try to allocate a new arena with size " << arenaSize; in TryAllocateNewArena()
78 …LOG_FRAME_ALLOCATOR(DEBUG) << "Successfully allocate new arena with addr " << std::hex << newArena; in TryAllocateNewArena()
90 …LOG_FRAME_ALLOCATOR(DEBUG) << "Can't allocate " << size << " bytes for a new frame in current aren… in Alloc()
92 LOG_FRAME_ALLOCATOR(DEBUG) << "Can't allocate a new arena, return nullptr"; in Alloc()
97 …LOG_FRAME_ALLOCATOR(DEBUG) << "Can't allocate memory in a totally free arena, change default arena… in Alloc()
141 // Try to allocate memory in the current arena: in TryToAllocate()
147 // We don't have enough memory in current arena, try to allocate in the next one: in TryToAllocate()
160 …LOG_FRAME_ALLOCATOR(DEBUG) << "Couldn't allocate " << size << " bytes of memory in the totally fre… in TryToAllocate()
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.
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 …]
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/plugins/ets/stdlib/std/core/
DGC.sts182 * Allocate array of boolean and pin (GC will not move pinned array)
197 * Allocate array of byte and pin (GC will not move pinned array)
212 * Allocate array of char and pin (GC will not move pinned array)
227 * Allocate array of short and pin (GC will not move pinned array)
242 * Allocate array of int and pin (GC will not move pinned array)
257 * Allocate array of long and pin (GC will not move pinned array)
272 * Allocate array of float and pin (GC will not move pinned array)
287 * Allocate array of double and pin (GC will not move pinned array)
/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/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/libpandabase/mem/
Dstack_like_allocator.h26 // 1. Allocate big memory piece via mmap.
27 // 2. Allocate/Free memory in this preallocated memory piece.
/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