```
void G1ConcurrentMark::report_object_count(bool mark_completed) {
// Depending on the completion of the marking liveness needs to be determined
// using either the bitmap or after the cycle using the scrubbing information.
if (mark_completed) {
G1ObjectCountIsAliveClosure is_alive(_g1h);
_gc_tracer_cm->report_object_count_after_gc(&is_alive, _g1h->workers());
} else {
G1CMIsAliveClosure is_alive(_g1h);
_gc_tracer_cm->report_object_count_after_gc(&is_alive, _g1h->workers());
}
}
```
`report_object_count_after_gc` is called even when mark isn't complete, but accurate liveness info require complete-marking.
Remove the partial-result case.
void G1ConcurrentMark::report_object_count(bool mark_completed) {
// Depending on the completion of the marking liveness needs to be determined
// using either the bitmap or after the cycle using the scrubbing information.
if (mark_completed) {
G1ObjectCountIsAliveClosure is_alive(_g1h);
_gc_tracer_cm->report_object_count_after_gc(&is_alive, _g1h->workers());
} else {
G1CMIsAliveClosure is_alive(_g1h);
_gc_tracer_cm->report_object_count_after_gc(&is_alive, _g1h->workers());
}
}
```
`report_object_count_after_gc` is called even when mark isn't complete, but accurate liveness info require complete-marking.
Remove the partial-result case.