8194271: jaotc crashes with --debug flag

Reviewed-by: kvn, thartmann
This commit is contained in:
Igor Veresov 2018-01-04 14:44:38 -08:00
parent fd34cd5262
commit 98601408f0
3 changed files with 56 additions and 1 deletions

View file

@ -600,6 +600,9 @@ JVMCIEnv::CodeInstallResult CodeInstaller::install(JVMCICompiler* compiler, Hand
if (!compiled_code->is_a(HotSpotCompiledNmethod::klass())) {
oop stubName = HotSpotCompiledCode::name(compiled_code_obj);
if (oopDesc::is_null(stubName)) {
JVMCI_ERROR_OK("stub should have a name");
}
char* name = strdup(java_lang_String::as_utf8_string(stubName));
cb = RuntimeStub::new_runtime_stub(name,
&buffer,