< prev index next >

src/hotspot/share/gc/g1/c2/g1BarrierSetC2.cpp

Print this page
@@ -593,11 +593,11 @@
  void G1BarrierSetC2::emit_stubs(CodeBuffer& cb) const {
    MacroAssembler masm(&cb);
    GrowableArray<G1BarrierStubC2*>* const stubs = barrier_set_state()->stubs();
    for (int i = 0; i < stubs->length(); i++) {
      // Make sure there is enough space in the code buffer
-     if (cb.insts()->maybe_expand_to_ensure_remaining(PhaseOutput::MAX_inst_size) && cb.blob() == nullptr) {
+     if (cb.insts()->maybe_expand_to_ensure_remaining(PhaseOutput::max_inst_gcstub_size()) && cb.blob() == nullptr) {
        ciEnv::current()->record_failure("CodeCache is full");
        return;
      }
      stubs->at(i)->emit_code(masm);
    }
< prev index next >