Home
last modified time | relevance | path

Searched refs:maxSize (Results 1 - 19 of 19) sorted by relevance

/arkcompiler/runtime_core/static_core/libpandabase/mem/
H A Dweighted_adaptive_tlab_average.h38 void StoreNewSample(size_t occupiedSize, size_t maxSize) in StoreNewSample() argument
41 ASSERT(occupiedSize <= maxSize); in StoreNewSample()
42 samples_.emplace_back(std::make_pair(occupiedSize, maxSize)); in StoreNewSample()
111 // If (occupiedSize / maxSize) < desiredFillFraction_ then
H A Dmalloc_mem_pool-inl.h48 size_t maxSize = size + sizeof(ArenaT) + maxAlignmentDrift; in AllocArenaImpl() local
49 auto ret = ark::os::mem::AlignedAlloc(std::max(DEFAULT_ALIGNMENT_IN_BYTES, alignof(ArenaT)), maxSize); in AllocArenaImpl()
51 size_t sizeForBuff = maxSize - sizeof(ArenaT); in AllocArenaImpl()
57 ASSERT(reinterpret_cast<std::uintptr_t>(ret) + maxSize >= reinterpret_cast<std::uintptr_t>(buff) + size); in AllocArenaImpl()
H A Dmmap_mem_pool.h309 void Initialize(uintptr_t minAddr, size_t maxSize) in Initialize() argument
312 maxSize_ = maxSize; in Initialize()
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Dmem_stats_gen_gc_test.cpp113 size_t maxSize; member
165 ObjVec MakeAllocationsWithRepeats(size_t minSize, size_t maxSize, size_t count, size_t *allocated,
240 MemStatsGenGCTest::ObjVec MemStatsGenGCTest::MakeAllocationsWithRepeats(size_t minSize, size_t maxSize, size_t count, in MakeAllocationsWithRepeats() argument
245 ASSERT(minSize <= maxSize); in MakeAllocationsWithRepeats()
255 objSize += (maxSize / count + i); // +i to mess with the alignment in MakeAllocationsWithRepeats()
256 if (objSize > maxSize) { in MakeAllocationsWithRepeats()
257 objSize = maxSize; in MakeAllocationsWithRepeats()
300 ObjVec ov1 = MakeAllocationsWithRepeats<F, REPEAT, SPACE>(gcData.minSize + 1, gcData.maxSize, 1, &bytes, in MakeAllocationsWithSingleRepeat()
317 gcData.minSize, gcData.maxSize, gcData.count, &bytes, &rawObjectsSize, spaceCheck, gcData.checkOom); in MakeAllocationsWithSeveralRepeat()
321 gcData.minSize, gcData.maxSize, gcDat in MakeAllocationsWithSeveralRepeat()
[all...]
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
158 ASSERT(minSize <= maxSize); in MakeAllocations()
168 objSize += (maxSize / count + i); // +i to mess with the alignment in MakeAllocations()
169 if (objSize > maxSize) { in MakeAllocations()
170 objSize = maxSize; in MakeAllocations()
/arkcompiler/runtime_core/static_core/runtime/mem/refstorage/
H A Dglobal_object_storage.cpp31 GlobalObjectStorage::GlobalObjectStorage(mem::InternalAllocatorPtr allocator, size_t maxSize, bool enableSizeCheck) in GlobalObjectStorage() argument
34 globalStorage_ = allocator->New<ArrayStorage>(allocator, maxSize, enableSizeCheck); in GlobalObjectStorage()
35 weakStorage_ = allocator->New<ArrayStorage>(allocator, maxSize, enableSizeCheck); in GlobalObjectStorage()
36 globalFixedStorage_ = allocator->New<ArrayStorage>(allocator, maxSize, enableSizeCheck, true); in GlobalObjectStorage()
H A Dglobal_object_storage.h46 explicit GlobalObjectStorage(mem::InternalAllocatorPtr allocator, size_t maxSize, bool enableSizeCheck);
181 explicit ArrayStorage(mem::InternalAllocatorPtr allocator, size_t maxSize, bool enableSizeCheck, in ArrayStorage() argument
183 : enableSizeCheck_(enableSizeCheck), isFixed_(isFixed), maxSize_(maxSize), allocator_(allocator) in ArrayStorage()
185 ASSERT(maxSize < (std::numeric_limits<uintptr_t>::max() >> (BITS_FOR_TYPE))); in ArrayStorage()
187 blocksAvailable_ = isFixed ? maxSize : INITIAL_SIZE; in ArrayStorage()
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/
H A Delf_checker.cpp169 result->maxSize = maxsize; in ElfAllocate()
307 int64_t offset, size_t maxSize, ElfCommand cmd, size_t scnCnt, Elf* elf) in GetElfItem()
340 if (SECUREC_UNLIKELY(scnCnt > 0 && elfSHOff >= maxSize) || in GetElfItem()
341 SECUREC_UNLIKELY(maxSize - elfSHOff < scnCnt * sizeof(ElfShdr))) { in GetElfItem()
361 if (SECUREC_LIKELY(elfItemField.shdr[cnt].sh_offset < maxSize) && in GetElfItem()
362 SECUREC_LIKELY(elfItemField.shdr[cnt].sh_size <= maxSize - elfItemField.shdr[cnt].sh_offset)) { in GetElfItem()
397 void* mapAddress, unsigned char* eIdent, int64_t offset, size_t maxSize, ElfCommand cmd, Elf* parent) in FileReadElf()
409 size_t scncnt = GetShnum(mapAddress, eIdent, offset, maxSize); in FileReadElf()
429 Elf* elf = ElfAllocate(mapAddress, offset, maxSize, cmd, parent, ELF_KIND_ELF, scnMax * sizeof(ElfSectionBase)); in FileReadElf()
444 elf->state.elf32, mapAddress, eIdent, offset, maxSize, cm in FileReadElf()
306 GetElfItem(ElfItemField& elfItemField, void* mapAddress, unsigned char* eIdent, int64_t offset, size_t maxSize, ElfCommand cmd, size_t scnCnt, Elf* elf) GetElfItem() argument
396 FileReadElf( void* mapAddress, unsigned char* eIdent, int64_t offset, size_t maxSize, ElfCommand cmd, Elf* parent) FileReadElf() argument
[all...]
H A Delf_checker.h280 size_t maxSize; member
383 Elf* GetElfItem(ElfItemField& elfItemField, void* mapAddress, unsigned char* eIdent, int64_t offset, size_t maxSize,
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/
H A Daarch64_fixshortbranch.h47 bool CheckFunctionSize(uint32 maxSize) const;
/arkcompiler/ets_runtime/ecmascript/mem/
H A Dmem_controller.cpp27 size_t MemController::CalculateAllocLimit(size_t currentSize, size_t minSize, size_t maxSize, size_t newSpaceCapacity, in CalculateAllocLimit() argument
35 const uint64_t halfToMaxSize = (static_cast<uint64_t>(currentSize) + maxSize) / 2; in CalculateAllocLimit()
37 result = static_cast<size_t>(std::min(result, maxSize)); in CalculateAllocLimit()
H A Dmem_controller.h48 size_t CalculateAllocLimit(size_t currentSize, size_t minSize, size_t maxSize, size_t newSpaceCapacity,
/arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/
H A Dmem.cpp122 const off_t maxSize = off + static_cast<off_t>(len); in mmap() local
123 const auto maxSizeLow = mem_select_lower_bound(maxSize); in mmap()
124 const auto maxSizeHigh = mem_select_upper_bound(maxSize); in mmap()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/
H A Daarch64_fixshortbranch.cpp176 bool AArch64FixShortBranch::CheckFunctionSize(uint32 maxSize) const in CheckFunctionSize()
204 return (lastInsnId - firstInsnId + 1) <= maxSize; in CheckFunctionSize()
/arkcompiler/runtime_core/static_core/runtime/mem/
H A Dheap_space.cpp24 void HeapSpace::Initialize(size_t initialSize, size_t maxSize, uint32_t minFreePercentage, uint32_t maxFreePercentage) in Initialize() argument
27 memSpace_.Initialize(initialSize, maxSize); in Initialize()
38 void HeapSpace::ObjectMemorySpace::Initialize(size_t initialSize, size_t maxSize) in Initialize() argument
41 maxSize_ = maxSize; in Initialize()
H A Dheap_space.h85 void Initialize(size_t initialSize, size_t maxSize, uint32_t minFreePercentage, uint32_t maxFreePercentage);
133 void Initialize(size_t initialSize, size_t maxSize);
/arkcompiler/ets_runtime/ecmascript/jit/
H A Djit.cpp368 uint32_t maxSize = 9000; in Compile() local
370 maxSize = 15; // 15 is method codesize threshold during fast compiling in Compile()
372 if (codeSize > maxSize && !(vm->GetJSOptions().IsEnableForceJitCompileMain() && mode == SYNC)) { in Compile()
/arkcompiler/ets_runtime/ecmascript/tests/
H A Djs_bigint_test.cpp248 uint32_t maxSize = maxSafeIntPlusOne->GetLength(); in HWTEST_F_L0() local
249 JSHandle<BigInt> subOneRes = BigInt::BitwiseSubOne(thread, maxSafeIntPlusOne, maxSize); in HWTEST_F_L0()
/arkcompiler/runtime_core/static_core/compiler/aot/aot_builder/
H A Delf_builder.h853 auto maxSize {to.Size() - beginIndex}; in CopyToSpan()
854 errno_t res = memcpy_s(&to[beginIndex], maxSize, from, size); in CopyToSpan()

Completed in 17 milliseconds