Searched refs:kPageSize (Results 1 - 25 of 55) sorted by relevance

123

/external/compiler-rt/test/asan/TestCases/Posix/
H A Dlarge_allocator_unpoisons_on_free.cc26 const int kPageSize = 4096; local
27 void *p = my_memalign(kPageSize, 1024 * 1024);
30 char *q = (char *)mmap(p, kPageSize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON | MAP_FIXED, 0, 0);
33 memset(q, 42, kPageSize);
35 munmap(q, kPageSize);
/external/chromium_org/base/memory/
H A Ddiscardable_memory_ashmem_allocator_unittest.cc24 const size_t kPageSize = 4096; member in namespace:base::internal
27 std::numeric_limits<size_t>::max() - kPageSize + 1;
85 scoped_ptr<DiscardableAshmemChunk> memory(allocator.Allocate(kPageSize));
88 ASSERT_TRUE(allocator.last_ashmem_region_size() % kPageSize == 0);
99 scoped_ptr<DiscardableAshmemChunk> memory(allocator_.Allocate(kPageSize));
101 EXPECT_EQ(0U, reinterpret_cast<uint64_t>(memory->Memory()) % kPageSize);
102 WriteToDiscardableAshmemChunk(memory.get(), kPageSize);
106 scoped_ptr<DiscardableAshmemChunk> memory(allocator_.Allocate(kPageSize));
110 allocator_.Allocate(kPageSize));
115 memory = allocator_.Allocate(kPageSize);
[all...]
H A Ddiscardable_memory_ashmem_allocator.cc52 const size_t kPageSize = 4096; local
53 DCHECK_EQ(static_cast<int>(kPageSize), getpagesize());
54 if (size > std::numeric_limits<size_t>::max() - kPageSize + 1)
56 const size_t mask = ~(kPageSize - 1);
57 return (size + kPageSize - 1) & mask;
/external/chromium_org/courgette/third_party/
H A Dpaged_array.h26 kPageSize = 1 << kLogPageSize enumerator in enum:courgette::PagedArray::__anon7926
36 size_t offset = i & (kPageSize - 1);
46 size_t pages_needed = (size + kPageSize - 1) >> kLogPageSize;
52 T* block = new(std::nothrow) T[kPageSize];
/external/chromium_org/ash/ime/
H A Dcandidate_window_view_unittest.cc184 const size_t kPageSize = 3; local
186 InitCandidateWindow(kPageSize, &candidate_window);
189 for (size_t i = 0; i < kPageSize; ++i) {
201 ASSERT_EQ(kPageSize, GetCandidatesSize());
202 for (size_t i = 0; i < kPageSize; ++i) {
210 const size_t kPageSize = 3; local
212 InitCandidateWindow(kPageSize, &candidate_window);
215 for (size_t i = 0; i < kPageSize; ++i) {
227 ASSERT_EQ(kPageSize, GetCandidatesSize());
229 for (size_t i = 0; i < kPageSize;
236 const size_t kPageSize = 3; local
264 const size_t kPageSize = 3; local
293 const size_t kPageSize = 10; local
[all...]
/external/chromium_org/base/allocator/
H A Dtcmalloc_unittest.cc19 for (int offset = 1; offset < kPageSize ; offset <<= 1) {
29 for (int offset = kPageSize; offset < kMaxSize; offset += kPageSize) {
/external/chromium_org/sandbox/win/wow_helper/
H A Dwow_helper.cc84 const size_t kPageSize = 4096; local
85 return sandbox::PatchNtdll(child, thunk, kPageSize);
/external/chromium_org/third_party/tcmalloc/chromium/src/
H A Dcommon.cc62 // Cap alignment at kPageSize for large sizes.
63 alignment = kPageSize;
73 if (alignment > kPageSize) {
74 alignment = kPageSize;
125 psize += kPageSize;
129 psize += kPageSize;
H A Dcommon.h89 static const size_t kPageSize = 1 << kPageShift; variable
93 static const size_t kMaxSize = 8u * kPageSize;
144 ((bytes & (kPageSize - 1)) > 0 ? 1 : 0);
/external/chromium_org/third_party/tcmalloc/vendor/src/
H A Dcommon.cc58 // Cap alignment at kPageSize for large sizes.
59 alignment = kPageSize;
69 if (alignment > kPageSize) {
70 alignment = kPageSize;
121 psize += kPageSize;
125 psize += kPageSize;
H A Dcommon.h73 static const size_t kPageSize = 1 << kPageShift; variable
127 ((bytes & (kPageSize - 1)) > 0 ? 1 : 0);
/external/chromium_org/third_party/WebKit/Source/platform/
H A DPurgeableVector.cpp256 const size_t kPageSize = 4096; local
257 newCapacity = (newCapacity + kPageSize - 1) & ~(kPageSize - 1);
/external/chromium_org/tools/android/memdump/
H A Dmemdump.cc32 const unsigned int kPageSize = getpagesize(); variable
155 (memory_map->end_address - memory_map->start_address) / kPageSize);
211 const off64_t offset = memory_map.start_address / kPageSize;
218 addr += kPageSize, ++page_index) {
219 DCHECK_EQ(0, addr % kPageSize);
367 out->append(base::IntToString(it->total_count * kPageSize));
369 out->append(base::IntToString(it->unevictable_count * kPageSize));
378 const int KB_PER_PAGE = kPageSize >> 10;
432 memory_map.private_pages.unevictable_count * kPageSize,
433 memory_map.private_pages.total_count * kPageSize,
[all...]
/external/compiler-rt/lib/asan/tests/
H A Dasan_test_utils.h63 static const int kPageSize = 4096; variable
H A Dasan_test.cc78 int pm_res = posix_memalign((void**)&pm, kPageSize, kPageSize);
84 int *ma = (int*)memalign(kPageSize, kPageSize);
85 EXPECT_EQ(0U, (uintptr_t)ma % kPageSize);
123 EXPECT_EQ(0U, (uintptr_t)a % kPageSize);
130 char *a = (char*)pvalloc(kPageSize + 100);
131 EXPECT_EQ(0U, (uintptr_t)a % kPageSize);
132 a[kPageSize + 101] = 1; // we should not report an error here.
136 EXPECT_EQ(0U, (uintptr_t)a % kPageSize);
[all...]
/external/chromium_org/v8/test/cctest/
H A 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;
/external/chromium_org/sandbox/win/src/
H A Dinterception.cc32 const size_t kPageSize = 4096; member in namespace:__anon10605
45 size_t align_size = kPageSize;
397 thunk_base += thunk_offset & ~(kPageSize - 1);
398 thunk_offset &= kPageSize - 1;
401 size_t thunk_bytes_padded = (thunk_bytes + kPageSize - 1) & ~(kPageSize - 1);
H A Dsandbox_nt_util.cc178 const int kPageSize = 4096; local
184 for (; start < end; start += kPageSize) {
189 for (; start < end; start += kPageSize) {
/external/chromium_org/third_party/android_crazy_linker/src/src/
H A Dcrazy_linker_rdebug.cpp164 static const uintptr_t kPageSize = 4096; member in class:crazy::__anon11491::ScopedPageMapper
170 page_address_ = reinterpret_cast<uintptr_t>(address) & ~(kPageSize - 1);
181 reinterpret_cast<void*>(page_address_), kPageSize, new_page_prot);
191 mprotect(reinterpret_cast<void*>(page_address_), kPageSize, page_prot_);
/external/chromium_org/v8/src/mips/
H A Dsimulator-mips.h88 static const int kPageSize = 1 << kPageShift; member in class:v8::internal::CachePage
89 static const int kPageMask = kPageSize - 1;
107 char data_[kPageSize]; // The cached data.
108 static const int kValidityMapSize = kPageSize >> kLineShift;
/external/chromium_org/base/
H A Dsecurity_unittest.cc246 size_t kPageSize = 4096; // We support x86_64 only.
253 mmap(0, kPageSize, PROT_READ|PROT_WRITE,
257 ASSERT_EQ(munmap(default_mmap_heap_address, kPageSize), 0);
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/
H A Dfrag_unittest.cc54 static const int kAllocSize = kMaxSize + kPageSize;
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/
H A Dfrag_unittest.cc54 static const int kAllocSize = kMaxSize + kPageSize;
/external/chromium_org/v8/src/arm/
H A Dsimulator-arm.h76 static const int kPageSize = 1 << kPageShift; member in class:v8::internal::CachePage
77 static const int kPageMask = kPageSize - 1;
95 char data_[kPageSize]; // The cached data.
96 static const int kValidityMapSize = kPageSize >> kLineShift;
/external/chromium_org/v8/src/mips64/
H A Dsimulator-mips64.h117 static const int kPageSize = 1 << kPageShift; member in class:v8::internal::CachePage
118 static const int kPageMask = kPageSize - 1;
136 char data_[kPageSize]; // The cached data.
137 static const int kValidityMapSize = kPageSize >> kLineShift;

Completed in 669 milliseconds

123