Searched refs:kAllocSize (Results 1 - 6 of 6) sorted by relevance

/external/compiler-rt/test/asan/TestCases/Linux/
H A Dquarantine_size_mb.cc12 static const int kAllocSize = 1 << 20; variable
16 g = new char[kAllocSize];
17 memset(g, -1, kAllocSize);
H A Dnohugepage_test.cc66 const int kAllocSize = 1 << 28; // 256Mb variable
78 x = (char *)mmap(0, kAllocSize, PROT_READ | PROT_WRITE,
80 fprintf(stderr, "X: %p-%p\n", x, x + kAllocSize);
84 for (size_t i = 0; i < kAllocSize; i += kTwoMb * kAsanShadowGranularity)
89 for (size_t i = 0; i < kAllocSize; i += kTwoMb * kAsanShadowGranularity)
94 __asan_poison_memory_region(x, kAllocSize);
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/
H A Dhard_rss_limit_mb_test.cc23 const int kAllocSize = 1000; variable
31 char *x = new char[kAllocSize];
32 memset(x, 0, kAllocSize);
H A Dsoft_rss_limit_mb_test.cc22 static const int kAllocSize = 1 << 20; // Large enough to go via mmap. variable
36 allocs[j] = (char*)malloc(kAllocSize);
38 memset(allocs[j], -1, kAllocSize);
/external/libchrome/base/
H A Dsecurity_unittest.cc158 size_t kAllocSize = 1<<20; local
160 static_cast<char*>(malloc(kAllocSize)));
/external/compiler-rt/lib/asan/tests/
H A Dasan_test.cc1254 const size_t kAllocSize = (1 << 28) - 1024; local
1257 void *x = malloc(kAllocSize);
1258 memset(x, 0, kAllocSize);
1259 total_size += kAllocSize;

Completed in 202 milliseconds