equal
deleted
inserted
replaced
414 // An upper bound on the number of live bytes in the region. |
414 // An upper bound on the number of live bytes in the region. |
415 size_t max_live_bytes() { return used() - garbage_bytes(); } |
415 size_t max_live_bytes() { return used() - garbage_bytes(); } |
416 |
416 |
417 void add_to_marked_bytes(size_t incr_bytes) { |
417 void add_to_marked_bytes(size_t incr_bytes) { |
418 _next_marked_bytes = _next_marked_bytes + incr_bytes; |
418 _next_marked_bytes = _next_marked_bytes + incr_bytes; |
419 guarantee( _next_marked_bytes <= used(), "invariant" ); |
419 assert(_next_marked_bytes <= used(), "invariant" ); |
420 } |
420 } |
421 |
421 |
422 void zero_marked_bytes() { |
422 void zero_marked_bytes() { |
423 _prev_marked_bytes = _next_marked_bytes = 0; |
423 _prev_marked_bytes = _next_marked_bytes = 0; |
424 } |
424 } |