@@ -874,12 +874,14 @@ if (should_print_ideal()) { print_ideal_ir("PrintIdeal"); } #endif - #ifdef ASSERT BarrierSetC2* bs = BarrierSet::barrier_set()->barrier_set_c2(); + bs->final_refinement(this); + + #ifdef ASSERT bs->verify_gc_barriers(this, BarrierSetC2::BeforeCodeGen); #endif // Dump compilation data to replay it. if (directive->DumpReplayOption) {