comparison src/share/vm/gc_implementation/g1/heapRegion.hpp @ 4093:6071e0581859

7111795: G1: Various cleanups identified during walk through of changes for 6484965 Summary: Various cleanups and formatting changes identified during a code walk through of the changes for 6484965 ("G1: piggy-back liveness accounting phase on marking"). Reviewed-by: brutisso, tonyp
author johnc
date Fri, 18 Nov 2011 12:27:10 -0800
parents c6a6e936dc68
children dc467e8b2c5e
comparison
equal deleted inserted replaced
4092:b5a5f30c483d 4093:6071e0581859
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 }