8220290: gc/arguments/TestSurvivorRatioFlag.java fails after JDK-8215221 with CMS
authorshade
Fri, 08 Mar 2019 12:01:43 +0100
changeset 54032 ac09c2498c64
parent 54031 feea57b38a1c
child 54033 07540197d0fd
8220290: gc/arguments/TestSurvivorRatioFlag.java fails after JDK-8215221 with CMS Reviewed-by: kbarrett, tschatzl
src/hotspot/share/gc/shared/genCollectedHeap.cpp
--- a/src/hotspot/share/gc/shared/genCollectedHeap.cpp	Fri Mar 08 11:23:30 2019 +0100
+++ b/src/hotspot/share/gc/shared/genCollectedHeap.cpp	Fri Mar 08 12:01:43 2019 +0100
@@ -679,7 +679,9 @@
     // Track memory usage and detect low memory after GC finishes
     MemoryService::track_memory_usage();
 
-    gc_epilogue(complete);
+    // Need to tell the epilogue code we are done with Full GC, regardless what was
+    // the initial value for "complete" flag.
+    gc_epilogue(true);
 
     BiasedLocking::restore_marks();