Searched refs:kAllocSize (Results 1 – 8 of 8) sorted by relevance
/external/compiler-rt/test/asan/TestCases/Linux/ |
D | nohugepage_test.cc | 66 const int kAllocSize = 1 << 28; // 256Mb variable 78 x = (char *)mmap(0, kAllocSize, PROT_READ | PROT_WRITE, in main() 80 fprintf(stderr, "X: %p-%p\n", x, x + kAllocSize); in main() 84 for (size_t i = 0; i < kAllocSize; i += kTwoMb * kAsanShadowGranularity) in main() 89 for (size_t i = 0; i < kAllocSize; i += kTwoMb * kAsanShadowGranularity) in main() 94 __asan_poison_memory_region(x, kAllocSize); in main()
|
D | quarantine_size_mb.cc | 12 static const int kAllocSize = 1 << 20; variable 16 g = new char[kAllocSize]; in main() 17 memset(g, -1, kAllocSize); in main()
|
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
D | hard_rss_limit_mb_test.cc | 23 const int kAllocSize = 1000; variable 31 char *x = new char[kAllocSize]; in main() 32 memset(x, 0, kAllocSize); in main()
|
D | soft_rss_limit_mb_test.cc | 22 static const int kAllocSize = 1 << 20; // Large enough to go via mmap. variable 36 allocs[j] = (char*)malloc(kAllocSize); in main() 38 memset(allocs[j], -1, kAllocSize); in main()
|
/external/perfetto/src/profiling/memory/ |
D | heapprofd_end_to_end_test.cc | 311 constexpr size_t kAllocSize = 1024; in Smoke() local 313 pid_t pid = ForkContinuousMalloc(kAllocSize); in Smoke() 336 ValidateSampleSizes(helper.get(), static_cast<uint64_t>(pid), kAllocSize); in Smoke() 343 constexpr size_t kAllocSize = 1024; in TwoProcesses() local 346 pid_t pid = ForkContinuousMalloc(kAllocSize); in TwoProcesses() 367 ValidateSampleSizes(helper.get(), static_cast<uint64_t>(pid), kAllocSize); in TwoProcesses() 378 constexpr size_t kAllocSize = 1024; in FinalFlush() local 380 pid_t pid = ForkContinuousMalloc(kAllocSize); in FinalFlush() 400 ValidateSampleSizes(helper.get(), static_cast<uint64_t>(pid), kAllocSize); in FinalFlush() 801 constexpr size_t kAllocSize = 1024; in ConcurrentSession() local [all …]
|
/external/libchrome/base/metrics/ |
D | persistent_histogram_storage.cc | 19 constexpr size_t kAllocSize = 1 << 20; // 1 MiB variable 32 GlobalHistogramAllocator::CreateWithLocalMemory(kAllocSize, in PersistentHistogramStorage()
|
/external/libchrome/base/ |
D | security_unittest.cc | 144 size_t kAllocSize = 1<<20; in TEST() local 146 static_cast<char*>(malloc(kAllocSize))); in TEST()
|
/external/compiler-rt/lib/asan/tests/ |
D | asan_test.cc | 1254 const size_t kAllocSize = (1 << 28) - 1024; in TEST() local 1257 void *x = malloc(kAllocSize); in TEST() 1258 memset(x, 0, kAllocSize); in TEST() 1259 total_size += kAllocSize; in TEST()
|