Mercurial > hg > graal-jvmci-8
changeset 24095:464eb43e7814
JVMCI code installer: throw an exception if emit_to_interp_stub fails
author | Gilles Duboscq <gilles.m.duboscq@oracle.com> |
---|---|
date | Tue, 07 Feb 2017 18:11:37 +0100 |
parents | 9b69cec6d01b |
children | 63d6fa35faad |
files | src/share/vm/jvmci/jvmciCodeInstaller.cpp |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/jvmci/jvmciCodeInstaller.cpp Mon Feb 06 17:18:57 2017 +0100 +++ b/src/share/vm/jvmci/jvmciCodeInstaller.cpp Tue Feb 07 18:11:37 2017 +0100 @@ -1024,7 +1024,10 @@ CodeInstaller::pd_relocate_JavaMethod(hotspot_method, pc_offset, CHECK); if (_next_call_type == INVOKESTATIC || _next_call_type == INVOKESPECIAL) { // Need a static call stub for transitions from compiled to interpreted. - CompiledStaticCall::emit_to_interp_stub(buffer, _instructions->start() + pc_offset); + address addr = CompiledStaticCall::emit_to_interp_stub(buffer, _instructions->start() + pc_offset); + if (addr == NULL) { + JVMCI_ERROR("Could not emit static call stub, was estimate_stubs_size wrong?"); + } } }