8359120: Improve warning message when fail to load hsdis library

Reviewed-by: mhaessig, thartmann
This commit is contained in:
Taizo Kurashige 2025-07-02 09:21:57 +00:00 committed by Manuel Hässig
parent eac8f5d2c9
commit ce9986991d
2 changed files with 9 additions and 0 deletions

View File

@ -3463,6 +3463,9 @@ void nmethod::decode2(outputStream* ost) const {
if (use_compressed_format && ! compressed_with_comments) {
const_cast<nmethod*>(this)->print_constant_pool(st);
st->bol();
st->cr();
st->print_cr("Loading hsdis library failed, undisassembled code is shown in MachCode section");
//---< Open the output (Marker for post-mortem disassembler) >---
st->print_cr("[MachCode]");
const char* header = nullptr;
@ -3497,6 +3500,9 @@ void nmethod::decode2(outputStream* ost) const {
if (compressed_with_comments) {
const_cast<nmethod*>(this)->print_constant_pool(st);
st->bol();
st->cr();
st->print_cr("Loading hsdis library failed, undisassembled code is shown in MachCode section");
//---< Open the output (Marker for post-mortem disassembler) >---
st->print_cr("[MachCode]");
while ((p < end) && (p != nullptr)) {

View File

@ -350,6 +350,9 @@ void AbstractDisassembler::decode_abstract(address start, address end, outputStr
outputStream* st = (ost == nullptr) ? tty : ost;
st->bol();
st->cr();
st->print_cr("Loading hsdis library failed, undisassembled code is shown in MachCode section");
//---< Open the output (Marker for post-mortem disassembler) >---
st->bol();
st->print_cr("[MachCode]");