Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.
/ jdk15u-dev Public archive

Commit

Permalink
8279077: JFR crashes on Linux ppc due to missing crash protector in s…
Browse files Browse the repository at this point in the history
…ignal handler

Reviewed-by: phh
  • Loading branch information
zhengyu123 committed Jan 4, 2022
1 parent 9a8cd1e commit 250ef7d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hotspot/os_cpu/linux_ppc/os_linux_ppc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ JVM_handle_linux_signal(int sig,

Thread* t = Thread::current_or_null_safe();

// Must do this before SignalHandlerMark, if crash protection installed we will longjmp away
// (no destructors can be run)
os::ThreadCrashProtection::check_crash_protection(sig, t);

SignalHandlerMark shm(t);

// Note: it's not uncommon that JNI code uses signal/sigset to install
Expand Down

1 comment on commit 250ef7d

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.