/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/ |
H A D | mem.cpp | 44 size_t mapOffset = RoundDown(fileOffset, GetPageSize()); in MapFile() 140 uint32_t GetPageSize() in GetPageSize() function 168 ASSERT(size % GetPageSize() == 0); in MapRWAnonymousRaw() 189 ASSERT(aligmentInBytes % GetPageSize() == 0); in MapRWAnonymousWithAlignmentRaw() 216 ASSERT(ToUintPtr(minMem) % GetPageSize() == 0); in MapRWAnonymousInFirst4GB() 217 ASSERT(size % GetPageSize() == 0); in MapRWAnonymousInFirst4GB() 218 ASSERT(iterativeStep % GetPageSize() == 0); in MapRWAnonymousInFirst4GB() 264 ASSERT(size % GetPageSize() == 0); in MapRWAnonymousFixedRaw() 308 ASSERT(size % GetPageSize() == 0); in TagAnonymousMemory() 309 ASSERT(reinterpret_cast<uintptr_t>(mem) % GetPageSize() in TagAnonymousMemory() [all...] |
H A D | thread.cpp | 186 uintptr_t stackLoAddr = stackHiAddr - stackSizeLimit + ark::os::mem::GetPageSize(); in ThreadGetStackInfo()
|
/arkcompiler/runtime_core/platforms/unix/libpandabase/ |
H A D | mem.cpp | 42 size_t map_offset = RoundDown(file_offset, GetPageSize()); in MapFile() 138 uint32_t GetPageSize() in GetPageSize() function 147 ASSERT(size % GetPageSize() == 0); in MapRWAnonymousRaw() 168 ASSERT(aligment_in_bytes % GetPageSize() == 0); in MapRWAnonymousWithAlignmentRaw() 205 ASSERT(size % GetPageSize() == 0); in MapRWAnonymousFixedRaw() 249 ASSERT(size % GetPageSize() == 0); in TagAnonymousMemory() 250 ASSERT(reinterpret_cast<uintptr_t>(mem) % GetPageSize() == 0); in TagAnonymousMemory()
|
/arkcompiler/runtime_core/platforms/windows/libpandabase/ |
H A D | mem.cpp | 161 size_t map_offset = RoundDown(file_offset, GetPageSize()); in MapFile() 217 uint32_t GetPageSize() in GetPageSize() function 225 ASSERT(size % GetPageSize() == 0); in MapRWAnonymousRaw() 249 ASSERT(aligment_in_bytes % GetPageSize() == 0); in MapRWAnonymousWithAlignmentRaw()
|
/arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/ |
H A D | mem.cpp | 165 size_t mapOffset = RoundDown(fileOffset, GetPageSize()); in MapFile() 221 uint32_t GetPageSize() in GetPageSize() function 268 ASSERT(size % GetPageSize() == 0); in MapRWAnonymousRaw() 293 ASSERT(aligmentInBytes % GetPageSize() == 0); in MapRWAnonymousWithAlignmentRaw()
|
/arkcompiler/runtime_core/static_core/libpandabase/mem/ |
H A D | stack_like_allocator-inl.h | 32 ASSERT(RELEASE_PAGES_SIZE == AlignUp(RELEASE_PAGES_SIZE, os::mem::GetPageSize())); in StackLikeAllocator() 41 MAX_SIZE, std::max(GetAlignmentInBytes(ALIGNMENT), static_cast<size_t>(ark::os::mem::GetPageSize()))); in StackLikeAllocator()
|
H A D | code_allocator.cpp | 26 const Alignment CodeAllocator::PAGE_LOG_ALIGN = GetLogAlignment(os::mem::GetPageSize());
|
H A D | mmap_mem_pool-inl.h | 302 ASSERT(size == AlignUp(size, ark::os::mem::GetPageSize())); in FreeArenaImpl() 339 ASSERT(size % ark::os::mem::GetPageSize() == 0); in AllocRawMemImpl() 387 ASSERT(size == AlignUp(size, ark::os::mem::GetPageSize())); in AllocPoolUnsafe() 448 ASSERT(size == AlignUp(size, ark::os::mem::GetPageSize())); in FreePoolUnsafe()
|
/arkcompiler/runtime_core/static_core/libpandabase/tests/ |
H A D | mmap_test.cpp | 91 result = MapRWAnonymousInFirst4GB(ToVoidPtr(4_GB + GetPageSize()), DEFAULT_MMAP_TEST_SIZE); in TEST_F() 127 size_t pageSize = ark::os::mem::GetPageSize(); in TEST_F()
|
/arkcompiler/runtime_core/libpandabase/os/ |
H A D | mem.h | 380 uint32_t GetPageSize(); 390 ASSERT(pages_start % os::mem::GetPageSize() == 0); in ReleasePages() 391 ASSERT(pages_end % os::mem::GetPageSize() == 0); in ReleasePages()
|
/arkcompiler/runtime_core/static_core/libpandabase/os/ |
H A D | mem.h | 396 PANDA_PUBLIC_API uint32_t GetPageSize(); 412 ASSERT(pagesStart % os::mem::GetPageSize() == 0); in ReleasePages() 413 ASSERT(pagesEnd % os::mem::GetPageSize() == 0); in ReleasePages()
|
/arkcompiler/runtime_core/libpandabase/tests/ |
H A D | mmap_fixed_test.cpp | 37 size_t page_size = panda::os::mem::GetPageSize(); in TEST_F()
|
/arkcompiler/runtime_core/libpandabase/mem/ |
H A D | mmap_mem_pool-inl.h | 207 ASSERT(size == AlignUp(size, panda::os::mem::GetPageSize())); in FreeArenaImpl() 267 ASSERT(size % panda::os::mem::GetPageSize() == 0); in AllocRawMemImpl() 315 ASSERT(size == AlignUp(size, panda::os::mem::GetPageSize())); in AllocPoolUnsafe() 367 ASSERT(size == AlignUp(size, panda::os::mem::GetPageSize())); in FreePoolUnsafe()
|
H A D | code_allocator.cpp | 26 const Alignment CodeAllocator::PAGE_LOG_ALIGN = GetLogAlignment(os::mem::GetPageSize());
|
/arkcompiler/runtime_core/static_core/runtime/mem/ |
H A D | pygote_space_allocator-inl.h | 80 if (arena_ != nullptr && arena_->GetFreeSize() >= ark::os::mem::GetPageSize()) { in SetState() 81 uintptr_t start = AlignUp(ToUintPtr(arena_->GetAllocatedEnd()), ark::os::mem::GetPageSize()); in SetState()
|
H A D | runslots_allocator-inl.h | 406 uintptr_t start = AlignUp(ToUintPtr(mem) + usedSize, ark::os::mem::GetPageSize()); in TrimUnsafe() 408 if (end >= start + ark::os::mem::GetPageSize()) { in TrimUnsafe() 602 uintptr_t startAddr = AlignUp(ToUintPtr(runslots), os::mem::GetPageSize()); in ReturnAndReleaseRunSlotsMemory()
|
H A D | humongous_obj_allocator-inl.h | 189 uintptr_t firstFreePage = AlignUp(allocAddr + allocSize, os::mem::GetPageSize()); in ReleaseUnusedPagesOnAlloc()
|
H A D | freelist_allocator-inl.h | 706 uintptr_t startAddr = AlignUp(ToUintPtr(current) + sizeof(FreeListHeader), os::mem::GetPageSize()); in ReleaseFreeMemoryBlocks()
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ |
H A D | interop_stacks.h | 27 void *pool = ark::os::mem::MapRWAnonymousWithAlignmentRaw(POOL_SIZE, ark::os::mem::GetPageSize()); in InteropCallStack()
|
/arkcompiler/runtime_core/static_core/runtime/ |
H A D | thread.cpp | 340 if (guardSize < ark::os::mem::GetPageSize()) { in InitForStackOverflowCheck() 341 guardSize = ark::os::mem::GetPageSize(); in InitForStackOverflowCheck() 378 uintptr_t nativeStackTop = AlignDown(GetStackTop(), ark::os::mem::GetPageSize()); in ProtectNativeStack() 396 size_t releaseSize = nativeStackTop - nativeStackBegin_ - ark::os::mem::GetPageSize(); in ProtectNativeStack()
|
/arkcompiler/runtime_core/libziparchive/tests/ |
H A D | libziparchive_tests.cpp | 203 uint32_t page_size = os::mem::GetPageSize(); in UnzipFileCheckTxt() 318 uint32_t page_size = os::mem::GetPageSize(); in UnzipFileCheckPandaFile() 435 uint32_t page_size = os::mem::GetPageSize(); in UnzipFileCheckInDirectory()
|
/arkcompiler/runtime_core/static_core/libziparchive/tests/ |
H A D | libziparchive_tests.cpp | 197 uint32_t pageSize = os::mem::GetPageSize(); in ExtractFile() 240 uint32_t pageSize = os::mem::GetPageSize(); in ExtractPandaFile()
|
/arkcompiler/runtime_core/static_core/libpandafile/ |
H A D | file.cpp | 146 size_t sizeToMmap = AlignUp(uncompressedLength, ark::os::mem::GetPageSize()); in OpenPandaFileFromZipFile() 279 size_t sizeToMmap = AlignUp(size, ark::os::mem::GetPageSize()); in OpenPandaFileFromMemory()
|
/arkcompiler/runtime_core/static_core/runtime/coroutines/ |
H A D | stackful_coroutine_manager.cpp | 121 coroStackSizeBytes_ = Runtime::GetCurrent()->GetOptions().GetCoroutineStackSizePages() * os::mem::GetPageSize(); in Initialize() 123 size_t alignmentPages = PANDA_POOL_ALIGNMENT_IN_BYTES / os::mem::GetPageSize(); in Initialize()
|
/arkcompiler/runtime_core/libpandafile/ |
H A D | file.cpp | 145 size_t size_to_mmap = AlignUp(uncompressed_length, panda::os::mem::GetPageSize()); in OpenPandaFileFromZipFile() 272 size_t size_to_mmap = AlignUp(size, panda::os::mem::GetPageSize()); in OpenPandaFileFromMemory()
|