Home
last modified time | relevance | path

Searched refs:allocated (Results 1 - 8 of 8) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/mem/
H A Dallocation_inspector.cpp65 void AllocationCounter::AdvanceAllocationInspector(size_t allocated) in AdvanceAllocationInspector() argument
70 ASSERT(allocated < nextCounter_ - currentCounter_); in AdvanceAllocationInspector()
71 currentCounter_ += allocated; in AdvanceAllocationInspector()
87 // because next allocate or advance can add currentCounter_ to real allocated size,
H A Dallocation_inspector.h35 // When total at least *rate_* bytes have been allocated, this func can be called.
36 // *object* is an address pointing to allocated and uninitialized memory.
55 void AdvanceAllocationInspector(size_t allocated);
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Dg1gc_fullgc_test.cpp118 ObjVec MakeAllocations(size_t minSize, size_t maxSize, size_t count, size_t *allocated, size_t *requested,
154 G1GCFullGCTest::ObjVec G1GCFullGCTest::MakeAllocations(size_t minSize, size_t maxSize, size_t count, size_t *allocated, in MakeAllocations() argument
159 *allocated = 0; in MakeAllocations()
194 *allocated += GetAlignedObjectSize(size); in MakeAllocations()
356 size_t allocated = 0; in TEST_F() local
357 while (allocated < 2U * heapSize) { in TEST_F()
360 allocated += bytes; in TEST_F()
373 size_t allocated = 0; in TEST_F() local
381 while (allocated < 4U * heapSize) { in TEST_F()
387 allocated in TEST_F()
[all...]
H A Dmem_stats_gen_gc_test.cpp46 * allocated directly in the tenured space for example.
165 ObjVec MakeAllocationsWithRepeats(size_t minSize, size_t maxSize, size_t count, size_t *allocated,
191 // If IS_SINGLE is true, then only 1 object is allocated of unaligned size
192 // If IS_SINGLE is false, then an array of objects of different sizes is allocated in triplets twice
241 size_t *allocated, size_t *requested, in MakeAllocationsWithRepeats()
246 *allocated = 0; in MakeAllocationsWithRepeats()
284 *allocated += region->Size(); in MakeAllocationsWithRepeats()
286 *allocated += GetAlignedObjectSize(size); in MakeAllocationsWithRepeats()
240 MakeAllocationsWithRepeats(size_t minSize, size_t maxSize, size_t count, size_t *allocated, size_t *requested, [[maybe_unused]] F spaceChecker, bool checkOomInTenured) MakeAllocationsWithRepeats() argument
/arkcompiler/runtime_core/static_core/runtime/mem/gc/
H A Dgc.cpp694 size_t allocated; in RegisterNativeAllocation() local
698 allocated = nativeBytesRegistered_.load(std::memory_order_relaxed); in RegisterNativeAllocation()
699 } while (!nativeBytesRegistered_.compare_exchange_weak(allocated, allocated + bytes)); in RegisterNativeAllocation()
700 if (allocated > std::numeric_limits<size_t>::max() - bytes) { in RegisterNativeAllocation()
710 size_t allocated; in RegisterNativeFree() local
715 allocated = nativeBytesRegistered_.load(std::memory_order_relaxed); in RegisterNativeFree()
716 newFreedBytes = std::min(allocated, bytes); in RegisterNativeFree()
717 } while (!nativeBytesRegistered_.compare_exchange_weak(allocated, allocated in RegisterNativeFree()
[all...]
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_gc.cpp79 auto allocated = heap->GetNativeBindingSize(); in RegisterNativeFree() local
80 heap->DecreaseNativeBindingSize(std::min(allocated, static_cast<size_t>(size))); in RegisterNativeFree()
/arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/
H A Dg1-gc.cpp1145 auto allocated = region->GetAllocatedBytes(); in CollectInSinglePass() local
1147 allocatedBytesYoung += allocated; in CollectInSinglePass()
1149 allocatedBytesOld += allocated; in CollectInSinglePass()
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/
H A Dsnapshot_processor.cpp1529 size_t allocated = current->GetAllocatedBytes(); in RelocateSpaceObject()
1531 uintptr_t end = begin + allocated; in RelocateSpaceObject()

Completed in 13 milliseconds