diff -r d05e0a4d1b43 -r 2a3323e25de1 hotspot/src/cpu/x86/vm/x86_32.ad --- a/hotspot/src/cpu/x86/vm/x86_32.ad Tue Jul 28 19:20:42 2015 +0200 +++ b/hotspot/src/cpu/x86/vm/x86_32.ad Wed Jul 29 08:05:21 2015 +0200 @@ -1907,7 +1907,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; + } } %}