comparison src/share/vm/gc_implementation/g1/heapRegion.hpp @ 545:58054a18d735

6484959: G1: introduce survivor spaces 6797754: G1: combined bugfix Summary: Implemented a policy to control G1 survivor space parameters. Reviewed-by: tonyp, iveresov
author apetrusenko
date Fri, 06 Feb 2009 01:38:50 +0300
parents ad8c8ca4ab0f
children fe3d7c11b4b7
comparison
equal deleted inserted replaced
544:82a980778b92 545:58054a18d735
564 // ever evacuated into this region. If we evacuate, allocate, and 564 // ever evacuated into this region. If we evacuate, allocate, and
565 // then evacuate we are in deep doodoo. 565 // then evacuate we are in deep doodoo.
566 void note_end_of_copying() { 566 void note_end_of_copying() {
567 assert(top() >= _next_top_at_mark_start, 567 assert(top() >= _next_top_at_mark_start,
568 "Increase only"); 568 "Increase only");
569 _next_top_at_mark_start = top(); 569 // Survivor regions will be scanned on the start of concurrent
570 // marking.
571 if (!is_survivor()) {
572 _next_top_at_mark_start = top();
573 }
570 } 574 }
571 575
572 // Returns "false" iff no object in the region was allocated when the 576 // Returns "false" iff no object in the region was allocated when the
573 // last mark phase ended. 577 // last mark phase ended.
574 bool is_marked() { return _prev_top_at_mark_start != bottom(); } 578 bool is_marked() { return _prev_top_at_mark_start != bottom(); }