HomeSort by relevance Sort by last modified time
    Searched defs:kAllocSize (Results 1 - 8 of 8) sorted by null

  /external/compiler-rt/test/asan/TestCases/Linux/
quarantine_size_mb.cc 12 static const int kAllocSize = 1 << 20;
16 g = new char[kAllocSize];
17 memset(g, -1, kAllocSize);
nohugepage_test.cc 66 const int kAllocSize = 1 << 28; // 256Mb
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/
hard_rss_limit_mb_test.cc 23 const int kAllocSize = 1000;
31 char *x = new char[kAllocSize];
32 memset(x, 0, kAllocSize);
soft_rss_limit_mb_test.cc 22 static const int kAllocSize = 1 << 20; // Large enough to go via mmap.
36 allocs[j] = (char*)malloc(kAllocSize);
38 memset(allocs[j], -1, kAllocSize);
  /system/chre/apps/chqts/src/shared/
dumb_allocator_test.cc 21 static constexpr size_t kAllocSize = 128;
24 typedef nanoapp_testing::DumbAllocator<kAllocSize, kSlotCount> DA;
33 void *ptr = da.alloc(kAllocSize);
42 ptrs[i] = da.alloc(kAllocSize);
50 EXPECT_EQ(nullptr, da.alloc(kAllocSize));
57 void *newPtr = da.alloc(kAllocSize);
66 uint8_t *ptr = static_cast<uint8_t*>(da.alloc(kAllocSize));
75 EXPECT_EQ(nullptr, da.alloc(kAllocSize + 1));
76 EXPECT_EQ(nullptr, da.alloc(kAllocSize * 2));
81 ExpectGoodAlloc(da, da.alloc(kAllocSize - 1))
    [all...]
send_message.cc 30 constexpr size_t kAllocSize = 128;
32 static DumbAllocator<kAllocSize, 4> gDumbAlloc;
35 if (messageSize > kAllocSize) {
  /external/libchrome/base/
security_unittest.cc 159 size_t kAllocSize = 1<<20;
161 static_cast<char*>(malloc(kAllocSize)));
  /external/compiler-rt/lib/asan/tests/
asan_test.cc     [all...]

Completed in 153 milliseconds