Home
last modified time | relevance | path

Searched refs:kPageSize (Results 1 – 25 of 32) sorted by relevance

12

/external/compiler-rt/test/asan/TestCases/Posix/
Dlarge_allocator_unpoisons_on_free.cc27 const long kPageSize = sysconf(_SC_PAGESIZE); in main() local
28 void *p = my_memalign(kPageSize, 1024 * 1024); in main()
31 char *q = (char *)mmap(p, kPageSize, PROT_READ | PROT_WRITE, in main()
35 memset(q, 42, kPageSize); in main()
37 munmap(q, kPageSize); in main()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_sync.cc124 const uptr kPageSize = GetPageSizeCached() * kMetaRatio; in ResetRange() local
125 if (sz <= 4 * kPageSize) { in ResetRange()
131 uptr diff = RoundUp(p, kPageSize) - p; in ResetRange()
137 diff = p + sz - RoundDown(p + sz, kPageSize); in ResetRange()
144 CHECK_EQ(p, RoundUp(p, kPageSize)); in ResetRange()
145 CHECK_EQ(sz, RoundUp(sz, kPageSize)); in ResetRange()
150 bool has_something = FreeRange(thr, pc, p, kPageSize); in ResetRange()
151 p += kPageSize; in ResetRange()
152 sz -= kPageSize; in ResetRange()
158 bool has_something = FreeRange(thr, pc, p - kPageSize, kPageSize); in ResetRange()
[all …]
Dtsan_rtl.cc842 const uptr kPageSize = GetPageSizeCached(); in MemoryRangeSet() local
847 while ((p < begin + kPageSize / kShadowSize / 2) || ((uptr)p % kPageSize)) { in MemoryRangeSet()
854 p = RoundDown(end, kPageSize); in MemoryRangeSet()
/external/google-breakpad/src/client/windows/unittests/
Dexception_handler_death_test.cc416 const DWORD kPageSize = sSysInfo.dwPageSize; in TEST_F() local
423 kPageSize * 2, in TEST_F()
427 char* memory = all_memory + kPageSize; in TEST_F()
428 ASSERT_TRUE(VirtualAlloc(memory, kPageSize, in TEST_F()
508 const DWORD kPageSize = sSysInfo.dwPageSize; in TEST_F() local
511 const int kOffset = kPageSize - sizeof(instructions); in TEST_F()
515 kPageSize * 2, in TEST_F()
519 ASSERT_TRUE(VirtualAlloc(memory, kPageSize, in TEST_F()
/external/v8/test/cctest/
Dtest-spaces.cc69 byte* mem = NewArray<byte>(2*Page::kPageSize);
73 Address page_start = RoundUp(start, Page::kPageSize);
86 CHECK(p->ObjectAreaEnd() == page_start + Page::kPageSize);
90 CHECK(p->Offset(page_start + Page::kPageSize) == Page::kPageSize);
93 CHECK(p->OffsetToAddress(Page::kPageSize) == p->ObjectAreaEnd());
400 int lo_size = Page::kPageSize; in TEST()
/external/compiler-rt/lib/asan/tests/
Dasan_test.cc78 int pm_res = posix_memalign((void**)&pm, kPageSize, kPageSize); in TEST()
84 int *ma = (int*)memalign(kPageSize, kPageSize); in TEST()
85 EXPECT_EQ(0U, (uintptr_t)ma % kPageSize); in TEST()
123 EXPECT_EQ(0U, (uintptr_t)a % kPageSize); in TEST()
130 char *a = (char*)pvalloc(kPageSize + 100); in TEST()
131 EXPECT_EQ(0U, (uintptr_t)a % kPageSize); in TEST()
132 a[kPageSize + 101] = 1; // we should not report an error here. in TEST()
136 EXPECT_EQ(0U, (uintptr_t)a % kPageSize); in TEST()
Dasan_test_utils.h63 static const int kPageSize = 4096; variable
/external/v8/src/mips/
Dsimulator-mips.h88 static const int kPageSize = 1 << kPageShift; variable
89 static const int kPageMask = kPageSize - 1;
107 char data_[kPageSize]; // The cached data.
108 static const int kValidityMapSize = kPageSize >> kLineShift;
Dsimulator-mips.cc877 int bytes_to_flush = CachePage::kPageSize - offset; in FlushICache()
906 DCHECK(size <= CachePage::kPageSize); in FlushOnePage()
/external/vixl/src/vixl/a64/
Dinstructions-a64.cc302 base = AlignDown(base, kPageSize); in ImmPCOffsetTarget()
303 offset *= kPageSize; in ImmPCOffsetTarget()
344 uintptr_t this_page = reinterpret_cast<uintptr_t>(this) / kPageSize; in SetPCRelImmTarget()
345 uintptr_t target_page = reinterpret_cast<uintptr_t>(target) / kPageSize; in SetPCRelImmTarget()
Dinstructions-a64.h46 const unsigned kPageSize = 4 * KBytes; variable
Ddisasm-a64.cc3291 offset *= kPageSize; in SubstitutePCRelAddressField()
3292 base = AlignDown(base, kPageSize); in SubstitutePCRelAddressField()
/external/v8/src/arm/
Dsimulator-arm.h76 static const int kPageSize = 1 << kPageShift; variable
77 static const int kPageMask = kPageSize - 1;
95 char data_[kPageSize]; // The cached data.
96 static const int kValidityMapSize = kPageSize >> kLineShift;
/external/v8/src/mips64/
Dsimulator-mips64.h117 static const int kPageSize = 1 << kPageShift; variable
118 static const int kPageMask = kPageSize - 1;
136 char data_[kPageSize]; // The cached data.
137 static const int kValidityMapSize = kPageSize >> kLineShift;
/external/v8/src/heap/
Dspaces.cc200 if (aligned_requested >= (current.size - Page::kPageSize)) { in AllocateRawMemory()
263 capacity_ = RoundUp(capacity, Page::kPageSize); in SetUp()
264 capacity_executable_ = RoundUp(capacity_executable, Page::kPageSize); in SetUp()
401 Address area_end = start + Page::kPageSize; in Initialize()
404 MemoryChunk::Initialize(heap, start, Page::kPageSize, area_start, in Initialize()
830 return Page::kPageSize - static_cast<int>(base::OS::CommitPageSize()); in CodePageAreaEndOffset()
890 area_size_ = Page::kPageSize - Page::kObjectStartOffset; in PagedSpace()
893 (RoundDown(max_capacity, Page::kPageSize) / Page::kPageSize) * AreaSize(); in PagedSpace()
959 if ((Capacity() + Page::kPageSize) > max_capacity_) return false; in CanExpand()
1283 int rounded_new_capacity = RoundUp(new_capacity, Page::kPageSize); in Shrink()
[all …]
Dstore-buffer.cc167 {97, ((Page::kPageSize / kPointerSize) / 97) / 8}, in EnsureSpace()
168 {23, ((Page::kPageSize / kPointerSize) / 23) / 16}, in EnsureSpace()
169 {7, ((Page::kPageSize / kPointerSize) / 7) / 32}, in EnsureSpace()
170 {3, ((Page::kPageSize / kPointerSize) / 3) / 256}, in EnsureSpace()
Dspaces.h88 DCHECK((Page::kObjectStartOffset <= offset) && (offset <= Page::kPageSize))
748 static const int kPageSize = 1 << kPageSizeBits; variable
754 static const int kMaxRegularHeapObjectSize = kPageSize - kObjectStartOffset;
910 DCHECK(size >= static_cast<size_t>(Page::kPageSize)); in FreeBlock()
915 DCHECK(size >= static_cast<size_t>(Page::kPageSize)); in FreeBlock()
982 static const int kSize = Page::kPageSize / kRegionSize;
984 STATIC_ASSERT(Page::kPageSize % kRegionSize == 0);
1032 return (Available() / Page::kPageSize) * Page::kMaxRegularHeapObjectSize; in MaxAvailable()
2369 return (to_space_.TotalCapacity() / Page::kPageSize) * in Capacity()
2722 if (chunk_size <= (Page::kPageSize + Page::kObjectStartOffset)) return 0; in ObjectSizeFor()
[all …]
Dheap.cc62 initial_semispace_size_(Page::kPageSize), in Heap()
145 DCHECK(MB >= Page::kPageSize); in Heap()
1362 DCHECK((Page::kPageSize - MemoryChunk::kBodyOffset) % (2 * kPointerSize) == in Initialize()
4855 max_semi_space_size_ = Page::kPageSize; in ConfigureHeap()
4910 Max(static_cast<intptr_t>(paged_space_count * Page::kPageSize), in ConfigureHeap()
6045 MemoryChunk::FromAddress(chunk->address() + Page::kPageSize); in FreeQueuedChunks()
6051 Address area_end = Min(inner->address() + Page::kPageSize, chunk_end); in FreeQueuedChunks()
6055 inner->set_size(Page::kPageSize); in FreeQueuedChunks()
6058 inner = MemoryChunk::FromAddress(inner->address() + Page::kPageSize); in FreeQueuedChunks()
6076 p ^= 0xc1ead & (Page::kPageSize - 1); // Cleared. in RememberUnmappedPage()
[all …]
Dheap.h1012 8 * (Page::kPageSize > MB ? Page::kPageSize : MB);
Dincremental-marking.cc325 chunk->size() > static_cast<size_t>(Page::kPageSize) && is_compacting) { in SetOldSpacePageFlags()
/external/compiler-rt/lib/msan/tests/
Dmsan_test.cc118 const size_t kPageSize = 4096; variable
3178 EXPECT_EQ(0U, (uintptr_t)p % kPageSize); in TEST()
3185 EXPECT_EQ(0U, (uintptr_t)a % kPageSize); in TEST()
3192 void *p = pvalloc(kPageSize + 100); in TEST()
3193 EXPECT_EQ(0U, (uintptr_t)p % kPageSize); in TEST()
3194 EXPECT_EQ(2 * kPageSize, __sanitizer_get_allocated_size(p)); in TEST()
3198 EXPECT_EQ(0U, (uintptr_t)p % kPageSize); in TEST()
3199 EXPECT_EQ(kPageSize, __sanitizer_get_allocated_size(p)); in TEST()
/external/v8/src/ia32/
Dregexp-macro-assembler-ia32.cc695 const int kPageSize = 4096; in GetCode() local
696 const int kRegistersPerPage = kPageSize / kPointerSize; in GetCode()
/external/v8/src/x87/
Dregexp-macro-assembler-x87.cc694 const int kPageSize = 4096; in GetCode() local
695 const int kRegistersPerPage = kPageSize / kPointerSize; in GetCode()
/external/v8/src/x64/
Dregexp-macro-assembler-x64.cc744 const int kPageSize = 4096; in GetCode() local
745 const int kRegistersPerPage = kPageSize / kPointerSize; in GetCode()
/external/vixl/test/
Dtest-assembler-a64.cc1738 SETUP_CUSTOM(2 * kPageSize, PageOffsetDependentCode); in TEST()
1744 kPageSize / kInstructionSize, in TEST()
1746 const uintptr_t kPageOffsetMask = kPageSize - 1; in TEST()
1778 VIXL_ASSERT(masm.SizeOfCodeGeneratedSince(&start) < kPageSize); in TEST()
1783 AlignDown(masm.GetLabelAddress<uint64_t*>(&start), kPageSize)); in TEST()
1799 VIXL_ASSERT(offset_into_page < kPageSize); in AdrpPageBoundaryHelper()
1802 const uintptr_t kPageOffsetMask = kPageSize - 1; in AdrpPageBoundaryHelper()
1808 const int kMaxCodeSize = (kEndPage - kStartPage + 2) * kPageSize; in AdrpPageBoundaryHelper()
1830 InstructionAccurateScope scope_page(&masm, kPageSize / kInstructionSize); in AdrpPageBoundaryHelper()
1834 for (size_t i = 2; i < (kPageSize / kInstructionSize); i += 2) { in AdrpPageBoundaryHelper()
[all …]

12