/arkcompiler/runtime_core/libpandabase/tests/ |
H A D | hash_test.cpp | 53 #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 D | hash_test.cpp | 53 #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 D | code_decrypt.h | 21 #ifndef PAGE_SIZE 22 #define PAGE_SIZE 0x1000 macro
|
H A D | ohos_pkg_args.h | 147 offStart &= -PAGE_SIZE; in GetJSPandaFile()
|
/arkcompiler/runtime_core/static_core/runtime/mem/gc/heap-space-misc/ |
H A D | crossing_map.h | 32 static constexpr size_t PANDA_CROSSING_MAP_GRANULARITY = PAGE_SIZE; 35 static_assert(PANDA_CROSSING_MAP_GRANULARITY == PAGE_SIZE);
|
H A D | crossing_map.cpp | 32 ASSERT((startAddr & (PAGE_SIZE - 1)) == 0U); in CrossingMap()
|
/arkcompiler/runtime_core/static_core/runtime/mem/ |
H A D | runslots.h | 29 static constexpr size_t RUNSLOTS_SIZE = PAGES_IN_RUNSLOTS * PAGE_SIZE; 30 static constexpr size_t RUNSLOTS_ALIGNMENT_IN_BYTES = PAGE_SIZE;
|
H A D | humongous_obj_allocator-inl.h | 51 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 D | humongous_obj_allocator.h | 231 static constexpr size_t PAGE_SIZE_MASK = ~(PAGE_SIZE - 1);
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ |
H A D | logger.h | 47 int len = vsnprintf_s(nullptr, 0, PAGE_SIZE, fmt, ap); in EtsLogMakeString()
|
/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | crossing_map_test.cpp | 78 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 D | runslots_allocator_test.cpp | 67 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 D | humongous_obj_allocator_test.cpp | 133 size_t poolSize = DEFAULT_POOL_SIZE_FOR_ALLOC + PAGE_SIZE * i; in TEST_F()
|
/arkcompiler/runtime_core/platforms/windows/libpandabase/ |
H A D | mem.cpp | 219 constexpr size_t PAGE_SIZE = 4096; in GetPageSize() local 220 return PAGE_SIZE; in GetPageSize()
|
/arkcompiler/runtime_core/static_core/libpandabase/mem/ |
H A D | mem.h | 298 #ifndef PAGE_SIZE 300 inline constexpr size_t PAGE_SIZE = 4096U;
|
/arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/ |
H A D | mem.cpp | 223 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 D | runtime_interface.h | 1235 return PAGE_SIZE; in GetProtectedMemorySize()
|