reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

projects/compiler-rt/lib/asan/asan_allocator.cpp
  414     if (size == 0) {
  421       size = 1;
  424     uptr rz_log = ComputeRZLog(size);
  426     uptr rounded_size = RoundUpTo(Max(size, kChunkHeader2Size), alignment);
  438     if (size > kMaxAllowedMallocSize || needed_size > kMaxAllowedMallocSize) {
  441                (void*)size);
  444       ReportAllocationSizeTooBig(size, needed_size, kMaxAllowedMallocSize,
  462       ReportOutOfMemory(size, stack);
  480     uptr user_end = user_beg + size;
  497       CHECK(size);
  498       m->user_requested_size = size;
  504       meta[0] = size;
  512         RoundDownTo(size, SHADOW_GRANULARITY);
  517     if (size != size_rounded_down_to_granularity && CanPoisonMemory()) {
  520       *shadow = fl.poison_partial ? (size & (SHADOW_GRANULARITY - 1)) : 0;
  525     thread_stats.malloced += size;
  526     thread_stats.malloced_redzones += needed_size - size;
  534       uptr fill_size = Min(size, (uptr)fl.max_malloc_fill_size);
  543     ASAN_MALLOC_HOOK(res, size);