< prev index next >
src/share/vm/opto/output.cpp
Print this page
rev 12113 : 8166561: [s390] Adaptions needed for s390 port in C1 and C2.
@@ -1211,10 +1211,17 @@
int nops_cnt = padding / nop_size;
MachNode *nop = new MachNopNode(nops_cnt);
block->insert_node(nop, j++);
last_inst++;
_cfg->map_node_to_block(nop, block);
+ // Ensure enough space.
+ cb->insts()->maybe_expand_to_ensure_remaining(MAX_inst_size);
+ if ((cb->blob() == NULL) || (!CompileBroker::should_compile_new_jobs())) {
+ C->record_failure("CodeCache is full");
+ CompileBroker::handle_full_code_cache(CodeCache::get_code_blob_type(((nmethod*)cb)->comp_level()));
+ return;
+ }
nop->emit(*cb, _regalloc);
cb->flush_bundle(true);
current_offset = cb->insts_size();
}
< prev index next >