--- 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)) {