8144487: PhaseIdealLoop::build_and_optimize() must restore major_progress flag if skip_loop_opts is true
authorthartmann
Mon, 21 Dec 2015 11:34:58 +0100
changeset 35140 744774d641ff
parent 35139 071b000357fc
child 35141 3cddc2b46986
8144487: PhaseIdealLoop::build_and_optimize() must restore major_progress flag if skip_loop_opts is true Summary: Restore the major_progress flag before calling igvn.optimize(). Reviewed-by: kvn
hotspot/src/share/vm/opto/loopnode.cpp
--- a/hotspot/src/share/vm/opto/loopnode.cpp	Mon Dec 21 10:14:26 2015 +0100
+++ b/hotspot/src/share/vm/opto/loopnode.cpp	Mon Dec 21 11:34:58 2015 +0100
@@ -2335,6 +2335,11 @@
 #endif
 
   if (skip_loop_opts) {
+    // restore major progress flag
+    for (int i = 0; i < old_progress; i++) {
+      C->set_major_progress();
+    }
+
     // Cleanup any modified bits
     _igvn.optimize();