Skip to content

Commit beb8b75

Browse files
fixup! Disable signal handling of JVM GC signals
1 parent 65bb2af commit beb8b75

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
@@ -351,8 +351,12 @@ static void uninstallExceptionOrSignalHandlers() {
351351

352352
#include <signal.h>
353353

354+
/// KOTLIN/NATIVE SPECIFIC HACK
355+
///
356+
/// We need to disable handling of signals that can originate from the JVM GC,
357+
/// since they should not trigger the LLVM signal handler.
354358
static const int Signals[] =
355-
{ SIGABRT, SIGBUS, SIGFPE, SIGILL, SIGSEGV, SIGTRAP };
359+
{ SIGABRT, /* SIGBUS, SIGFPE, SIGILL, SIGSEGV, */ SIGTRAP };
356360
static const unsigned NumSignals = std::size(Signals);
357361
static struct sigaction PrevActions[NumSignals];
358362

0 commit comments

Comments
 (0)