--- old/src/cpu/x86/vm/x86_32.ad 2016-04-11 14:42:25.806478521 +0300 +++ new/src/cpu/x86/vm/x86_32.ad 2016-04-11 14:42:25.562471870 +0300 @@ -1870,7 +1870,11 @@ static_call_Relocation::spec(), RELOC_IMM32 ); } if (_method) { // Emit stub for static call. - CompiledStaticCall::emit_to_interp_stub(cbuf); + address stub = CompiledStaticCall::emit_to_interp_stub(cbuf); + if (stub == NULL) { + ciEnv::current()->record_failure("CodeCache is full"); + return; + } } %}