src/hotspot/share/opto/compile.cpp
changeset 57582 a79a819a8218
parent 55307 ed12027517c0
child 57584 9d82a35b6ff7
--- a/src/hotspot/share/opto/compile.cpp	Sat Jul 27 10:02:35 2019 +0800
+++ b/src/hotspot/share/opto/compile.cpp	Mon Jul 29 13:57:54 2019 +0200
@@ -2400,13 +2400,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
 
@@ -2420,6 +2413,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)) {