src/hotspot/share/compiler/disassembler.cpp
changeset 51078 fc6cfe40e32a
parent 50528 1fd4844371bb
child 51092 3b5fd72147c9
equal deleted inserted replaced
51077:9baa91bc7567 51078:fc6cfe40e32a
   120   }
   120   }
   121   if (_library != NULL) {
   121   if (_library != NULL) {
   122     _decode_instructions_virtual = CAST_TO_FN_PTR(Disassembler::decode_func_virtual,
   122     _decode_instructions_virtual = CAST_TO_FN_PTR(Disassembler::decode_func_virtual,
   123                                           os::dll_lookup(_library, decode_instructions_virtual_name));
   123                                           os::dll_lookup(_library, decode_instructions_virtual_name));
   124   }
   124   }
   125   if (_decode_instructions_virtual == NULL) {
   125   if (_decode_instructions_virtual == NULL && _library != NULL) {
   126     // could not spot in new version, try old version
   126     // could not spot in new version, try old version
   127     _decode_instructions = CAST_TO_FN_PTR(Disassembler::decode_func,
   127     _decode_instructions = CAST_TO_FN_PTR(Disassembler::decode_func,
   128                                           os::dll_lookup(_library, decode_instructions_name));
   128                                           os::dll_lookup(_library, decode_instructions_name));
   129     use_new_version = false;
   129     use_new_version = false;
   130   } else {
   130   } else {