hotspot/src/share/vm/gc_implementation/g1/heapRegion.hpp
changeset 11172 f720721985ba
parent 10770 de4ae3b50648
child 11176 9bb1ddd8da51
equal deleted inserted replaced
11171:02c21e3d0a66 11172:f720721985ba
   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   }