--- old/src/cpu/x86/vm/x86_64.ad 2015-10-08 07:23:28.000000000 -1000 +++ new/src/cpu/x86/vm/x86_64.ad 2015-10-08 07:23:28.000000000 -1000 @@ -2136,12 +2136,13 @@ RELOC_DISP32); } if (_method) { - // Emit stub for static call. - address stub = CompiledStaticCall::emit_to_interp_stub(cbuf); + // Emit stubs for static call. + address mark = cbuf.insts_mark(); + address stub = CompiledStaticCall::emit_to_interp_stub(cbuf, mark); if (stub == NULL) { ciEnv::current()->record_failure("CodeCache is full"); return; - } + } } %}