Home | History | Annotate | Download | only in gc

Lines Matching refs:freed_bytes

1523 void Heap::RecordFree(uint64_t freed_objects, int64_t freed_bytes) {
1527 DCHECK_LE(freed_bytes, static_cast<int64_t>(num_bytes_allocated_.LoadRelaxed()));
1528 // Note: This relies on 2s complement for handling negative freed_bytes.
1529 num_bytes_allocated_.FetchAndSubSequentiallyConsistent(static_cast<ssize_t>(freed_bytes));
1533 thread_stats->freed_bytes += freed_bytes;
1537 global_stats->freed_bytes += freed_bytes;
3480 const uint64_t freed_bytes = current_gc_iteration_.GetFreedBytes() +
3483 // Bytes allocated will shrink by freed_bytes after the GC runs, so if we want to figure out
3484 // how many bytes were allocated during the GC we need to add freed_bytes back on.
3485 CHECK_GE(bytes_allocated + freed_bytes, bytes_allocated_before_gc);
3486 const uint64_t bytes_allocated_during_gc = bytes_allocated + freed_bytes -