src/hotspot/share/gc/g1/c2/g1BarrierSetC2.cpp
changeset 52442 dc1f9dec2018
parent 52426 38bf0c9c4e64
child 52568 40474b7105f4
--- a/src/hotspot/share/gc/g1/c2/g1BarrierSetC2.cpp	Wed Nov 07 20:21:35 2018 +0100
+++ b/src/hotspot/share/gc/g1/c2/g1BarrierSetC2.cpp	Wed Nov 07 20:24:44 2018 +0100
@@ -778,6 +778,9 @@
 
 #ifdef ASSERT
 void G1BarrierSetC2::verify_gc_barriers(Compile* compile, CompilePhase phase) const {
+  if (phase != BarrierSetC2::BeforeCodeGen) {
+    return;
+  }
   // Verify G1 pre-barriers
   const int marking_offset = in_bytes(G1ThreadLocalData::satb_mark_queue_active_offset());