hotspot/src/cpu/x86/vm/x86_32.ad
changeset 32082 2a3323e25de1
parent 31047 50c0dc40661c
child 32727 320855c2baef
--- 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;
+      } 
     }
   %}