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

References

projects/compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary64.h
  695         region->allocated_user + requested_count * size;
  697     if (LIKELY(total_user_bytes > region->mapped_user)) {
  698       if (UNLIKELY(region->mapped_user == 0)) {
  701           region->rand_state = static_cast<u32>(region_beg >> 12);
  709           region->rtoi.last_release_at_ns = MonotonicNanoTime();
  713           RoundUpTo(total_user_bytes - region->mapped_user, kUserMapSize);
  714       if (UNLIKELY(IsRegionExhausted(region, class_id, user_map_size)))
  716       if (UNLIKELY(!MapWithCallback(region_beg + region->mapped_user,
  721       region->mapped_user += user_map_size;
  724         (region->mapped_user - region->allocated_user) / size;
  724         (region->mapped_user - region->allocated_user) / size;
  729           region->allocated_meta + new_chunks_count * kMetadataSize;
  730       const uptr meta_map_size = (total_meta_bytes > region->mapped_meta) ?
  731           RoundUpTo(total_meta_bytes - region->mapped_meta, kMetaMapSize) : 0;
  734         if (UNLIKELY(IsRegionExhausted(region, class_id, meta_map_size)))
  737             GetMetadataEnd(region_beg) - region->mapped_meta - meta_map_size,
  740         region->mapped_meta += meta_map_size;
  746     const uptr total_freed_chunks = region->num_freed_chunks + new_chunks_count;
  747     if (UNLIKELY(!EnsureFreeArraySpace(region, region_beg, total_freed_chunks)))
  750     for (uptr i = 0, chunk = region->allocated_user; i < new_chunks_count;
  754       RandomShuffle(&free_array[region->num_freed_chunks], new_chunks_count,
  755                     &region->rand_state);
  759     region->num_freed_chunks += new_chunks_count;
  760     region->allocated_user += new_chunks_count * size;
  761     CHECK_LE(region->allocated_user, region->mapped_user);
  761     CHECK_LE(region->allocated_user, region->mapped_user);
  762     region->allocated_meta += new_chunks_count * kMetadataSize;
  763     CHECK_LE(region->allocated_meta, region->mapped_meta);
  763     CHECK_LE(region->allocated_meta, region->mapped_meta);
  764     region->exhausted = false;