8233997: Some members of HeapRegion are not cleared in HeapRegion::hr_clear()
Reviewed-by: sjohanss, sangheki
--- a/src/hotspot/share/gc/g1/heapRegion.cpp Fri Nov 22 10:03:38 2019 +0100
+++ b/src/hotspot/share/gc/g1/heapRegion.cpp Fri Nov 22 10:03:38 2019 +0100
@@ -136,6 +136,11 @@
init_top_at_mark_start();
if (clear_space) clear(SpaceDecorator::Mangle);
+
+ _evacuation_failed = false;
+ _gc_efficiency = 0.0;
+ _recorded_rs_length = 0;
+ _predicted_elapsed_time_ms = 0.0;
}
void HeapRegion::clear_cardtable() {