mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
8001538: hs_err file does not list anymore compiled methods in compilation events
Fixed message buffer size calculation. Reviewed-by: kvn, twisti
This commit is contained in:
parent
fea11c53eb
commit
7f0d3fe5e7
2 changed files with 9 additions and 4 deletions
|
@ -1242,8 +1242,8 @@ JRT_ENTRY(void, Deoptimization::uncommon_trap_inner(JavaThread* thread, jint tra
|
|||
nmethodLocker nl(fr.pc());
|
||||
|
||||
// Log a message
|
||||
Events::log_deopt_message(thread, "Uncommon trap %d fr.pc " INTPTR_FORMAT,
|
||||
trap_request, fr.pc());
|
||||
Events::log(thread, "Uncommon trap: trap_request=" PTR32_FORMAT " fr.pc=" INTPTR_FORMAT,
|
||||
trap_request, fr.pc());
|
||||
|
||||
{
|
||||
ResourceMark rm;
|
||||
|
@ -1274,6 +1274,11 @@ JRT_ENTRY(void, Deoptimization::uncommon_trap_inner(JavaThread* thread, jint tra
|
|||
MethodData* trap_mdo =
|
||||
get_method_data(thread, trap_method, create_if_missing);
|
||||
|
||||
// Log a message
|
||||
Events::log_deopt_message(thread, "Uncommon trap: reason=%s action=%s pc=" INTPTR_FORMAT " method=%s @ %d",
|
||||
trap_reason_name(reason), trap_action_name(action), fr.pc(),
|
||||
trap_method->name_and_sig_as_C_string(), trap_bci);
|
||||
|
||||
// Print a bunch of diagnostics, if requested.
|
||||
if (TraceDeoptimization || LogCompilation) {
|
||||
ResourceMark rm;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue