mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8272586: emit abstract machine code in hs-err logs
Reviewed-by: kvn, dholmes
This commit is contained in:
parent
97ea9dd2f2
commit
b60837a7d5
7 changed files with 318 additions and 50 deletions
|
@ -67,6 +67,7 @@
|
|||
#include "runtime/sharedRuntime.hpp"
|
||||
#include "runtime/signature.hpp"
|
||||
#include "runtime/sweeper.hpp"
|
||||
#include "runtime/threadWXSetters.inline.hpp"
|
||||
#include "runtime/vmThread.hpp"
|
||||
#include "utilities/align.hpp"
|
||||
#include "utilities/copy.hpp"
|
||||
|
@ -923,7 +924,7 @@ void nmethod::print_on(outputStream* st, const char* msg) const {
|
|||
CompileTask::print(st, this, msg, /*short_form:*/ true);
|
||||
st->print_cr(" (" INTPTR_FORMAT ")", p2i(this));
|
||||
} else {
|
||||
CompileTask::print(st, this, msg, /*short_form:*/ false);
|
||||
CompileTask::print(st, this, msg, /*short_form:*/ false, /* cr */ true, /* timestamp */ false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2528,7 +2529,7 @@ void nmethod::print(outputStream* st) const {
|
|||
st->print("(n/a) ");
|
||||
}
|
||||
|
||||
print_on(tty, NULL);
|
||||
print_on(st, NULL);
|
||||
|
||||
if (WizardMode) {
|
||||
st->print("((nmethod*) " INTPTR_FORMAT ") ", p2i(this));
|
||||
|
@ -2879,6 +2880,9 @@ void nmethod::decode2(outputStream* ost) const {
|
|||
AbstractDisassembler::show_block_comment());
|
||||
#endif
|
||||
|
||||
// Decoding an nmethod can write to a PcDescCache (see PcDescCache::add_pc_desc)
|
||||
MACOS_AARCH64_ONLY(ThreadWXEnable wx(WXWrite, Thread::current());)
|
||||
|
||||
st->cr();
|
||||
this->print(st);
|
||||
st->cr();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue