src/hotspot/share/compiler/disassembler.cpp
changeset 51078 fc6cfe40e32a
parent 50528 1fd4844371bb
child 51092 3b5fd72147c9
--- a/src/hotspot/share/compiler/disassembler.cpp	Fri Jul 13 11:21:55 2018 +0800
+++ b/src/hotspot/share/compiler/disassembler.cpp	Thu Jul 12 16:31:28 2018 +0200
@@ -122,7 +122,7 @@
     _decode_instructions_virtual = CAST_TO_FN_PTR(Disassembler::decode_func_virtual,
                                           os::dll_lookup(_library, decode_instructions_virtual_name));
   }
-  if (_decode_instructions_virtual == NULL) {
+  if (_decode_instructions_virtual == NULL && _library != NULL) {
     // could not spot in new version, try old version
     _decode_instructions = CAST_TO_FN_PTR(Disassembler::decode_func,
                                           os::dll_lookup(_library, decode_instructions_name));