Skip to content

Commit e050f9b

Browse files
committed
turn off activation
1 parent d9982bc commit e050f9b

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/coreclr/nativeaot/Runtime/unix/PalRedhawkUnix.cpp

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -951,22 +951,22 @@ static void ActivationHandler(int code, siginfo_t* siginfo, void* context)
951951
{
952952
ASSERT(g_pHijackCallback != NULL);
953953

954-
// Only accept activations from the current process
955-
if (siginfo->si_pid == getpid()
956-
#ifdef HOST_OSX
957-
// On OSX si_pid is sometimes 0. It was confirmed by Apple to be expected, as the si_pid is tracked at the process level. So when multiple
958-
// signals are in flight in the same process at the same time, it may be overwritten / zeroed.
959-
|| siginfo->si_pid == 0
960-
#endif
961-
)
962-
{
963-
PAL_LIMITED_CONTEXT palContext;
964-
NativeContextToPalContext(context, &palContext);
965-
g_pHijackCallback(&palContext, NULL);
966-
//TODO: VS update conditionally, this is rare
967-
UpdateNativeContextFromPalContext(context, &palContext);
968-
}
969-
else
954+
// // Only accept activations from the current process
955+
// if (siginfo->si_pid == getpid()
956+
//#ifdef HOST_OSX
957+
// // On OSX si_pid is sometimes 0. It was confirmed by Apple to be expected, as the si_pid is tracked at the process level. So when multiple
958+
// // signals are in flight in the same process at the same time, it may be overwritten / zeroed.
959+
// || siginfo->si_pid == 0
960+
//#endif
961+
// )
962+
// {
963+
// PAL_LIMITED_CONTEXT palContext;
964+
// NativeContextToPalContext(context, &palContext);
965+
// g_pHijackCallback(&palContext, NULL);
966+
// //TODO: VS update conditionally, this is rare
967+
// UpdateNativeContextFromPalContext(context, &palContext);
968+
// }
969+
// else
970970
{
971971
// Call the original handler when it is not ignored or default (terminate).
972972
if (g_previousActivationHandler.sa_flags & SA_SIGINFO)

0 commit comments

Comments
 (0)