HomeSort by: relevance | last modified time | path
    Searched refs:SHADOW_GRANULARITY (Results 1 - 12 of 12) sorted by relevancy

  /src/sys/external/bsd/compiler_rt/dist/lib/asan/
asan_poisoning.h 44 aligned_beg + aligned_size - SHADOW_GRANULARITY) + 1;
83 for (uptr i = 0; i < redzone_size; i += SHADOW_GRANULARITY, shadow++) {
84 if (i + SHADOW_GRANULARITY <= size) {
87 *shadow = (SHADOW_GRANULARITY == 128) ? 0xff : value; // unaddressable
asan_poisoning.cc 39 CHECK(AddrIsInMem(addr + size - SHADOW_GRANULARITY));
56 s8 offset; // in [0, SHADOW_GRANULARITY)
61 offset = address & (SHADOW_GRANULARITY - 1);
82 CHECK(IsAligned(end, SHADOW_GRANULARITY));
83 if (!IsAligned(ptr, SHADOW_GRANULARITY)) {
85 poison ? static_cast<u8>(ptr % SHADOW_GRANULARITY) : 0;
86 ptr |= SHADOW_GRANULARITY - 1;
89 for (; ptr < end; ptr += SHADOW_GRANULARITY)
195 uptr aligned_b = RoundUpTo(beg, SHADOW_GRANULARITY);
196 uptr aligned_e = RoundDownTo(end, SHADOW_GRANULARITY);
    [all...]
asan_rtl.cc 153 uptr s = size <= SHADOW_GRANULARITY ? *reinterpret_cast<u8 *>(sp) \
156 if (UNLIKELY(size >= SHADOW_GRANULARITY || \
157 ((s8)((addr & (SHADOW_GRANULARITY - 1)) + size - 1)) >= \
323 kHighMemEnd |= SHADOW_GRANULARITY * GetMmapGranularity() - 1;
377 Printf("SHADOW_GRANULARITY: %d\n", (int)SHADOW_GRANULARITY);
444 SetLowLevelAllocateMinAlignment(SHADOW_GRANULARITY);
asan_thread.cc 312 uptr tls_begin_aligned = RoundDownTo(tls_begin_, SHADOW_GRANULARITY);
313 uptr tls_end_aligned = RoundUpTo(tls_end_, SHADOW_GRANULARITY);
337 uptr mem_ptr = RoundDownTo(aligned_addr, SHADOW_GRANULARITY);
344 mem_ptr -= SHADOW_GRANULARITY;
350 mem_ptr -= SHADOW_GRANULARITY;
357 uptr* ptr = (uptr*)(mem_ptr + SHADOW_GRANULARITY);
asan_flags.cc 148 // Ensure that redzone is at least SHADOW_GRANULARITY.
149 if (f->redzone < (int)SHADOW_GRANULARITY)
150 f->redzone = SHADOW_GRANULARITY;
asan_mapping.h 241 #define SHADOW_GRANULARITY (1ULL << SHADOW_SCALE)
378 return (a & (SHADOW_GRANULARITY - 1)) == 0;
389 u8 last_accessed_byte = (a & (SHADOW_GRANULARITY - 1))
asan_fake_stack.cc 269 uptr PartialRzAligned = PartialRzAddr & ~(SHADOW_GRANULARITY - 1);
272 PartialRzAligned, PartialRzAddr % SHADOW_GRANULARITY,
281 (bottom - top) / SHADOW_GRANULARITY);
asan_activation.cc 116 disabled.min_redzone = Max(16, (int)SHADOW_GRANULARITY);
asan_globals.cc 65 uptr aligned_size = RoundUpTo(g.size, SHADOW_GRANULARITY);
70 g.beg + RoundDownTo(g.size, SHADOW_GRANULARITY),
71 g.size % SHADOW_GRANULARITY,
72 SHADOW_GRANULARITY,
asan_errors.cc 320 uptr granularity = SHADOW_GRANULARITY;
399 if (*shadow_addr == 0 && access_size > SHADOW_GRANULARITY) shadow_addr++;
490 (int)SHADOW_GRANULARITY);
493 for (u8 i = 1; i < SHADOW_GRANULARITY; i++) PrintShadowByte(str, "", i, " ");
asan_allocator.cc 148 RoundUpTo(m->UsedSize(), SHADOW_GRANULARITY),
306 uptr end_aligned_down = RoundDownTo(end, SHADOW_GRANULARITY);
410 const uptr min_alignment = SHADOW_GRANULARITY;
513 RoundDownTo(size, SHADOW_GRANULARITY);
521 *shadow = fl.poison_partial ? (size & (SHADOW_GRANULARITY - 1)) : 0;
589 RoundUpTo(m->UsedSize(), SHADOW_GRANULARITY),
asan_new_delete.cc 73 // For local pool allocation, align to SHADOW_GRANULARITY to match asan
77 void *res = MemalignFromLocalPool(SHADOW_GRANULARITY, size);\

Completed in 45 milliseconds