< prev index next >

src/cpu/x86/vm/x86_32.ad

Print this page

        

@@ -1906,10 +1906,11 @@
       emit_d32_reloc(cbuf, ($meth$$method - (int)(cbuf.insts_end()) - 4),
                      static_call_Relocation::spec(), RELOC_IMM32 );
     }
     if (_method) {  // Emit stub for static call.
       CompiledStaticCall::emit_to_interp_stub(cbuf);
+      if (Compile::current()->env()->failing()) { return; } // CodeCache is full
     }
   %}
 
   enc_class Java_Dynamic_Call (method meth) %{    // JAVA DYNAMIC CALL
     MacroAssembler _masm(&cbuf);
< prev index next >