changeset 58970:01cc6bb2a090

8233997: Some members of HeapRegion are not cleared in HeapRegion::hr_clear() Reviewed-by: sjohanss, sangheki
author tschatzl
date Fri, 22 Nov 2019 10:03:38 +0100
parents a1155217a563
children 72e15d757e6c
files src/hotspot/share/gc/g1/heapRegion.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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() {