Home
last modified time | relevance | path

Searched refs:PAGE_SIZE (Results 1 - 17 of 17) sorted by relevance

/arkcompiler/runtime_core/libpandabase/tests/
H A Dhash_test.cpp53 #ifndef PAGE_SIZE
54 static constexpr size_t PAGE_SIZE = SIZE_1K * 4; member in panda::HashTest
121 constexpr size_t ALLOC_SIZE = PAGE_SIZE * 2; in EndOfPageStringHashTest()
124 panda::os::mem::MakeMemProtected(reinterpret_cast<void *>(reinterpret_cast<uintptr_t>(mem) + PAGE_SIZE), PAGE_SIZE); in EndOfPageStringHashTest()
126 reinterpret_cast<char *>((reinterpret_cast<uintptr_t>(mem) + PAGE_SIZE) - sizeof(char) * string_size); in EndOfPageStringHashTest()
/arkcompiler/runtime_core/static_core/libpandabase/tests/
H A Dhash_test.cpp53 #ifndef PAGE_SIZE
54 static constexpr size_t PAGE_SIZE = SIZE_1K * 4U; member in ark::HashTest
126 constexpr size_t ALLOC_SIZE = PAGE_SIZE * 2U; in EndOfPageStringHashTest()
129 ark::os::mem::MakeMemProtected(reinterpret_cast<void *>(reinterpret_cast<uintptr_t>(mem) + PAGE_SIZE), PAGE_SIZE); in EndOfPageStringHashTest()
130 auto string = reinterpret_cast<char *>((reinterpret_cast<uintptr_t>(mem) + PAGE_SIZE) - sizeof(char) * stringSize); in EndOfPageStringHashTest()
/arkcompiler/ets_runtime/ecmascript/ohos/
H A Dcode_decrypt.h21 #ifndef PAGE_SIZE
22 #define PAGE_SIZE 0x1000 macro
H A Dohos_pkg_args.h147 offStart &= -PAGE_SIZE; in GetJSPandaFile()
/arkcompiler/runtime_core/static_core/runtime/mem/gc/heap-space-misc/
H A Dcrossing_map.h32 static constexpr size_t PANDA_CROSSING_MAP_GRANULARITY = PAGE_SIZE;
35 static_assert(PANDA_CROSSING_MAP_GRANULARITY == PAGE_SIZE);
H A Dcrossing_map.cpp32 ASSERT((startAddr & (PAGE_SIZE - 1)) == 0U); in CrossingMap()
/arkcompiler/runtime_core/static_core/runtime/mem/
H A Drunslots.h29 static constexpr size_t RUNSLOTS_SIZE = PAGES_IN_RUNSLOTS * PAGE_SIZE;
30 static constexpr size_t RUNSLOTS_ALIGNMENT_IN_BYTES = PAGE_SIZE;
H A Dhumongous_obj_allocator-inl.h51 if (UNLIKELY(PAGE_SIZE <= sizeof(MemoryPoolHeader) + GetAlignmentInBytes(align))) { in Alloc()
52 ASSERT(PAGE_SIZE > sizeof(MemoryPoolHeader) + GetAlignmentInBytes(align)); in Alloc()
120 // Each memory pool is PAGE_SIZE aligned, so to get a header we need just to align a pointer in FreeUnsafe()
171 if (AlignUp(ToUintPtr(mem), PAGE_SIZE) != ToUintPtr(mem)) { in AddMemoryPool()
H A Dhumongous_obj_allocator.h231 static constexpr size_t PAGE_SIZE_MASK = ~(PAGE_SIZE - 1);
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/
H A Dlogger.h47 int len = vsnprintf_s(nullptr, 0, PAGE_SIZE, fmt, ap); in EtsLogMakeString()
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Dcrossing_map_test.cpp78 return ToVoidPtr(ToUintPtr(addr) + PAGE_SIZE); in AddPage()
135 // Use OBJ_SIZE + PAGE_SIZE here or we can get an overflow during AddPage(obj_addr) in TEST_F()
136 void *objAddr = GetRandomObjAddr(OBJ_SIZE + PAGE_SIZE); in TEST_F()
145 static constexpr size_t OBJ_SIZE = PAGE_SIZE * 2U; in TEST_F()
H A Drunslots_allocator_test.cpp67 void *mem = ark::os::mem::MapRWAnonymousRaw(DEFAULT_POOL_SIZE_FOR_ALLOC + PAGE_SIZE);
68 mprotect(reinterpret_cast<void *>(reinterpret_cast<uintptr_t>(mem) + DEFAULT_POOL_SIZE_FOR_ALLOC), PAGE_SIZE,
70 std::pair<void *, size_t> newPair {mem, DEFAULT_POOL_SIZE_FOR_ALLOC + PAGE_SIZE};
H A Dhumongous_obj_allocator_test.cpp133 size_t poolSize = DEFAULT_POOL_SIZE_FOR_ALLOC + PAGE_SIZE * i; in TEST_F()
/arkcompiler/runtime_core/platforms/windows/libpandabase/
H A Dmem.cpp219 constexpr size_t PAGE_SIZE = 4096; in GetPageSize() local
220 return PAGE_SIZE; in GetPageSize()
/arkcompiler/runtime_core/static_core/libpandabase/mem/
H A Dmem.h298 #ifndef PAGE_SIZE
300 inline constexpr size_t PAGE_SIZE = 4096U;
/arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/
H A Dmem.cpp223 constexpr size_t PAGE_SIZE = 4096; in GetPageSize() local
224 return PAGE_SIZE; in GetPageSize()
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
H A Druntime_interface.h1235 return PAGE_SIZE; in GetProtectedMemorySize()

Completed in 14 milliseconds