Home
last modified time | relevance | path

Searched refs:heapSize (Results 1 - 15 of 15) sorted by relevance

/arkcompiler/runtime_core/static_core/runtime/mem/gc/
H A Dgc_trigger.cpp87 void GCTriggerHeap::ComputeNewTargetFootprint(const GCTask &task, size_t heapSizeBeforeGc, size_t heapSize) in ComputeNewTargetFootprint() argument
96 size_t target = this->ComputeTarget(heapSizeBeforeGc, heapSize); in ComputeNewTargetFootprint()
105 size_t GCTriggerHeap::ComputeTarget(size_t heapSizeBeforeGc, size_t heapSize) in ComputeTarget() argument
108 size_t delta = (heapSize / PERCENT_100) * percentThreshold_; in ComputeTarget()
111 if (heapSize > heapSizeBeforeGc) { in ComputeTarget()
115 delta = std::max(delta, (heapSizeBeforeGc - heapSize) / 2); in ComputeTarget()
117 return heapSize + std::max(delta, minExtraSize_); in ComputeTarget()
149 size_t GCAdaptiveTriggerHeap::ComputeTarget(size_t heapSizeBeforeGc, size_t heapSize) in ComputeTarget() argument
151 auto delta = static_cast<size_t>(static_cast<double>(heapSize) / PERCENT_100_D * percentThreshold_); in ComputeTarget()
160 delta = std::min(delta, heapSize); in ComputeTarget()
249 GCStarted([[maybe_unused]] const GCTask &task, [[maybe_unused]] size_t heapSize) GCStarted() argument
254 GCFinished(const GCTask &task, size_t heapSizeBeforeGc, size_t heapSize) GCFinished() argument
278 GCStarted([[maybe_unused]] const GCTask &task, [[maybe_unused]] size_t heapSize) GCStarted() argument
283 GCFinished([[maybe_unused]] const GCTask &task, [[maybe_unused]] size_t heapSizeBeforeGc, [[maybe_unused]] size_t heapSize) GCFinished() argument
295 GCStarted([[maybe_unused]] const GCTask &task, [[maybe_unused]] size_t heapSize) GCStarted() argument
300 GCFinished([[maybe_unused]] const GCTask &task, [[maybe_unused]] size_t heapSizeBeforeGc, [[maybe_unused]] size_t heapSize) GCFinished() argument
388 GCFinished(const GCTask &task, size_t heapSizeBeforeGc, size_t heapSize) GCFinished() argument
418 ComputeTarget(size_t heapSizeBeforeGc, size_t heapSize) ComputeTarget() argument
[all...]
H A Dgc_trigger.h126 virtual void SetMinTargetFootprint([[maybe_unused]] size_t heapSize) {} in SetMinTargetFootprint() argument
146 void GCStarted(const GCTask &task, size_t heapSize) override;
147 void GCFinished(const GCTask &task, size_t heapSizeBeforeGc, size_t heapSize) override;
150 void ComputeNewTargetFootprint(const GCTask &task, size_t heapSizeBeforeGc, size_t heapSize);
161 virtual size_t ComputeTarget(size_t heapSizeBeforeGc, size_t heapSize);
203 size_t ComputeTarget(size_t heapSizeBeforeGc, size_t heapSize) override;
222 void GCStarted(const GCTask &task, size_t heapSize) override;
223 void GCFinished(const GCTask &task, size_t heapSizeBeforeGc, size_t heapSize) override;
241 void GCStarted(const GCTask &task, [[maybe_unused]] size_t heapSize) override;
243 [[maybe_unused]] size_t heapSize) overrid
[all...]
H A Dbitmap.h428 explicit MemBitmap(void *memAddr, size_t heapSize, void *bitmapAddr)
429 : Bitmap(static_cast<BitmapWordType *>(bitmapAddr), heapSize / BYTESPERCHUNK),
431 endAddr_(beginAddr_ + heapSize)
450 inline static constexpr size_t GetBitMapSizeInByte(size_t heapSize)
452 ASSERT(heapSize % BYTESPERCHUNK == 0);
453 size_t bitSize = heapSize / BYTESPERCHUNK;
H A Dgc.h121 virtual void GCStarted([[maybe_unused]] const GCTask &task, [[maybe_unused]] size_t heapSize) {} in GCStarted() argument
123 [[maybe_unused]] size_t heapSize) in GCFinished()
122 GCFinished([[maybe_unused]] const GCTask &task, [[maybe_unused]] size_t heapSizeBeforeGc, [[maybe_unused]] size_t heapSize) GCFinished() argument
/arkcompiler/ets_runtime/ecmascript/
H A Decma_param_configuration.h40 EcmaParamConfiguration(HeapType heapType, size_t poolSize, size_t heapSize = 1_MB) in EcmaParamConfiguration()
44 if (heapSize > LOW_MEMORY && heapSize < DEFAULT_WORKER_HEAP_SIZE) { in EcmaParamConfiguration()
45 maxHeapSize_ = heapSize; in EcmaParamConfiguration()
51 if (heapSize > LOW_MEMORY && heapSize < DEFAULT_SHARED_HEAP_SIZE) { in EcmaParamConfiguration()
52 maxHeapSize_ = heapSize; in EcmaParamConfiguration()
63 if (heapSize > LOW_MEMORY && heapSize < DEFAULT_HEAP_SIZE) { in EcmaParamConfiguration()
64 maxHeapSize_ = heapSize; in EcmaParamConfiguration()
[all...]
H A Decma_vm.cpp67 size_t heapSize = options.GetHeapSize(); in Create() local
71 heapSize = OHOS::system::GetUintParameter<size_t>("persist.ark.heap.workersize", 0) * 1_MB; in Create()
74 heapSize = OHOS::system::GetUintParameter<size_t>("persist.ark.heap.defaultsize", 0) * 1_MB; in Create()
80 heapSize); in Create()
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Dg1gc_fullgc_test.cpp51 void GCStarted([[maybe_unused]] const GCTask &task, [[maybe_unused]] size_t heapSize) override
57 [[maybe_unused]] size_t heapSize) override
70 void GCStarted([[maybe_unused]] const GCTask &task, [[maybe_unused]] size_t heapSize) override {}
73 [[maybe_unused]] size_t heapSize) override
341 [[maybe_unused]] size_t heapSize = mem::MemConfig::GetHeapSizeLimit(); in TEST_F() local
357 while (allocated < 2U * heapSize) { in TEST_F()
381 while (allocated < 4U * heapSize) { in TEST_F()
415 [[maybe_unused]] size_t heapSize = mem::MemConfig::GetHeapSizeLimit(); in TEST_F() local
475 [[maybe_unused]] size_t heapSize = mem::MemConfig::GetHeapSizeLimit(); in TEST_F() local
H A Dgc_trigger_test.cpp103 [[maybe_unused]] size_t heapSize) override
H A Dmem_stats_gen_gc_test.cpp96 void GCStarted([[maybe_unused]] const GCTask &task, [[maybe_unused]] size_t heapSize) override
102 [[maybe_unused]] size_t heapSize) override
/arkcompiler/runtime_core/static_core/runtime/mem/
H A Dpygote_space_allocator-inl.h199 inline void PygoteSpaceAllocator<AllocConfigT>::CreateLiveBitmap(void *heapBegin, size_t heapSize) in CreateLiveBitmap() argument
202 auto bitmapData = allocator->Alloc(MarkBitmap::GetBitMapSizeInByte(heapSize)); in CreateLiveBitmap()
206 auto bitmapObj = new (bitmap) MarkBitmap(heapBegin, heapSize, bitmapData); in CreateLiveBitmap()
H A Dpygote_space_allocator.h101 void CreateLiveBitmap(void *heapBegin, size_t heapSize);
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/
H A Dstd_core_gc.cpp43 void GCStarted(const GCTask &task, size_t heapSize) override;
45 void GCFinished(const GCTask &task, size_t heapSizeBeforeGc, size_t heapSize) override;
89 void GCTaskTracker::GCStarted(const GCTask &task, [[maybe_unused]] size_t heapSize) in GCStarted() argument
107 [[maybe_unused]] size_t heapSize) in GCFinished()
106 GCFinished(const GCTask &task, [[maybe_unused]] size_t heapSizeBeforeGc, [[maybe_unused]] size_t heapSize) GCFinished() argument
/arkcompiler/ets_runtime/ecmascript/mem/
H A Dgc_bitset.h49 static size_t SizeOfGCBitset(size_t heapSize) in SizeOfGCBitset() argument
51 size_t bitSize = AlignUp(heapSize, TAGGED_TYPE_SIZE) >> TAGGED_TYPE_SIZE_LOG; in SizeOfGCBitset()
/arkcompiler/ets_runtime/ecmascript/serializer/
H A Dserialize_data.h141 uint64_t heapSize = thread_->GetEcmaVM()->GetJSOptions().GetSerializerBufferSizeLimit(); in AllocateBuffer() local
142 sizeLimit_ = heapSize; in AllocateBuffer()
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/
H A Dheap_profiler.cpp181 size_t heapSize = vm_->GetHeap()->GetLiveObjectSize(); in DoDump() local
182 LOG_ECMA(INFO) << "HeapProfiler DumpSnapshot heap size " << heapSize; in DoDump()
586 auto [localCnt, heapSize] = GetHeapCntAndSize(vm_); in BinaryDump()
591 uint64_t heapTotalSize = heapSize + sharedSize; in BinaryDump()

Completed in 13 milliseconds