Skip to content

Commit dde9444

Browse files
fixup! Disable signal handling of JVM GC signals
1 parent 056f265 commit dde9444

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

llvm/lib/Support/CrashRecoveryContext.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,12 @@ static void uninstallExceptionOrSignalHandlers() {
344344

345345
#include <signal.h>
346346

347+
/// KOTLIN/NATIVE SPECIFIC HACK
348+
///
349+
/// We need to disable handling of signals that can originate from the JVM GC,
350+
/// since they should not trigger the LLVM signal handler.
347351
static const int Signals[] =
348-
{ SIGABRT, SIGBUS, SIGFPE, SIGILL, SIGSEGV, SIGTRAP };
352+
{ SIGABRT, /* SIGBUS, SIGFPE, SIGILL, SIGSEGV, */ SIGTRAP };
349353
static const unsigned NumSignals = std::size(Signals);
350354
static struct sigaction PrevActions[NumSignals];
351355

0 commit comments

Comments
 (0)