1868 } else { |
1868 } else { |
1869 emit_d32_reloc(cbuf, ($meth$$method - (int)(cbuf.insts_end()) - 4), |
1869 emit_d32_reloc(cbuf, ($meth$$method - (int)(cbuf.insts_end()) - 4), |
1870 static_call_Relocation::spec(), RELOC_IMM32 ); |
1870 static_call_Relocation::spec(), RELOC_IMM32 ); |
1871 } |
1871 } |
1872 if (_method) { // Emit stub for static call. |
1872 if (_method) { // Emit stub for static call. |
1873 CompiledStaticCall::emit_to_interp_stub(cbuf); |
1873 address stub = CompiledStaticCall::emit_to_interp_stub(cbuf); |
|
1874 if (stub == NULL) { |
|
1875 ciEnv::current()->record_failure("CodeCache is full"); |
|
1876 return; |
|
1877 } |
1874 } |
1878 } |
1875 %} |
1879 %} |
1876 |
1880 |
1877 enc_class Java_Dynamic_Call (method meth) %{ // JAVA DYNAMIC CALL |
1881 enc_class Java_Dynamic_Call (method meth) %{ // JAVA DYNAMIC CALL |
1878 MacroAssembler _masm(&cbuf); |
1882 MacroAssembler _masm(&cbuf); |