src/hotspot/share/opto/compile.cpp
changeset 57584 9d82a35b6ff7
parent 55583 82fae48799e4
parent 57582 a79a819a8218
child 58102 b2a4b22f8cf2
--- a/src/hotspot/share/opto/compile.cpp	Mon Jul 29 18:22:55 2019 +0200
+++ b/src/hotspot/share/opto/compile.cpp	Mon Jul 29 09:59:04 2019 -0700
@@ -2399,13 +2399,6 @@
   }
 
 #ifdef ASSERT
-  bs->verify_gc_barriers(this, BarrierSetC2::BeforeLateInsertion);
-#endif
-
-  bs->barrier_insertion_phase(C, igvn);
-  if (failing())  return;
-
-#ifdef ASSERT
   bs->verify_gc_barriers(this, BarrierSetC2::BeforeMacroExpand);
 #endif
 
@@ -2419,6 +2412,13 @@
     print_method(PHASE_MACRO_EXPANSION, 2);
   }
 
+#ifdef ASSERT
+  bs->verify_gc_barriers(this, BarrierSetC2::BeforeLateInsertion);
+#endif
+
+  bs->barrier_insertion_phase(C, igvn);
+  if (failing())  return;
+
   {
     TracePhase tp("barrierExpand", &timers[_t_barrierExpand]);
     if (bs->expand_barriers(this, igvn)) {