< prev index next > src/hotspot/share/gc/z/c2/zBarrierSetC2.cpp
Print this page
GrowableArray<ZBarrierStubC2*>* const stubs = barrier_set_state()->stubs();
barrier_set_state()->set_stubs_start_offset(masm.offset());
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 >