8233997: Some members of HeapRegion are not cleared in HeapRegion::hr_clear()
authortschatzl
Fri, 22 Nov 2019 10:03:38 +0100
changeset 59219 01cc6bb2a090
parent 59218 a1155217a563
child 59220 72e15d757e6c
8233997: Some members of HeapRegion are not cleared in HeapRegion::hr_clear() Reviewed-by: sjohanss, sangheki
src/hotspot/share/gc/g1/heapRegion.cpp
--- 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() {