--- old/src/hotspot/share/jvmci/jvmciCodeInstaller.cpp 2018-01-02 17:23:08.000000000 -0800 +++ new/src/hotspot/share/jvmci/jvmciCodeInstaller.cpp 2018-01-02 17:23:07.000000000 -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,