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
--- 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();