6888316: G1: has_aborted() || _cm->region_stack_empty() fails

Remove incorrect guarantee.

Reviewed-by: apetrusenko, iveresov
This commit is contained in:
Antonios Printezis 2009-10-07 09:42:18 -04:00
parent 31de6adee9
commit 0835f0c4df

View file

@ -3416,13 +3416,6 @@ void CMTask::drain_region_stack(BitMapClosure* bc) {
_region_finger = NULL; _region_finger = NULL;
} }
// We only push regions on the region stack during evacuation
// pauses. So if we come out the above iteration because we region
// stack is empty, it will remain empty until the next yield
// point. So, the guarantee below is safe.
guarantee( has_aborted() || _cm->region_stack_empty(),
"only way to exit the loop" );
if (_cm->verbose_low()) if (_cm->verbose_low())
gclog_or_tty->print_cr("[%d] drained region stack, size = %d", gclog_or_tty->print_cr("[%d] drained region stack, size = %d",
_task_id, _cm->region_stack_size()); _task_id, _cm->region_stack_size());