diff -r 3b00541635f9 -r 8935285e8759 src/hotspot/share/jvmci/jvmciCodeInstaller.cpp --- a/src/hotspot/share/jvmci/jvmciCodeInstaller.cpp Thu Jan 04 13:32:10 2018 -0800 +++ b/src/hotspot/share/jvmci/jvmciCodeInstaller.cpp Thu Jan 04 14:44:38 2018 -0800 @@ -600,6 +600,9 @@ 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,