--- old/src/cpu/x86/vm/c1_CodeStubs_x86.cpp 2016-04-11 14:42:23.922427168 +0300 +++ new/src/cpu/x86/vm/c1_CodeStubs_x86.cpp 2016-04-11 14:42:23.697421036 +0300 @@ -502,6 +502,9 @@ ce->align_call(lir_static_call); ce->emit_static_call_stub(); + if (ce->compilation()->bailed_out()) { + return; // CodeCache is full + } AddressLiteral resolve(SharedRuntime::get_resolve_static_call_stub(), relocInfo::static_call_type); __ call(resolve);