Skip to content

Commit

Permalink
Comment out unsupported block of code
Browse files Browse the repository at this point in the history
TODO: Find a permanent solution to this

Signed-off-by: midronij <jackie.midroni@ibm.com>
  • Loading branch information
midronij authored and ishitaR88 committed Sep 13, 2024
1 parent 00061b4 commit 8442ac2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions port/unix/omrsignal.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,15 +406,17 @@ omrsig_protect(struct OMRPortLibrary *portLibrary, omrsig_protected_fn fn, void
*/
OMRCurrentSignal *currentSignal = omrthread_tls_get(thisThread, tlsKeyCurrentSignal);

/* setjmp/longjmp does not clear the mask setup by the OS when it delivers the signal. User sigsetjmp/siglongjmp(buf, 1) instead */
/*
// setjmp/longjmp does not clear the mask setup by the OS when it delivers the signal. User sigsetjmp/siglongjmp(buf, 1) instead
if (0 != sigsetjmp(thisRecord.returnBuf, 1)) {
/* the handler had long jumped back here -- reset the signal handler stack and currentSignal and return */
// the handler had long jumped back here -- reset the signal handler stack and currentSignal and return
omrthread_tls_set(thisThread, tlsKey, thisRecord.previous);
omrthread_tls_set(thisThread, tlsKeyCurrentSignal, currentSignal);
*result = 0;
Trc_PRT_signal_omrsignal_sig_protect_Exit_long_jumped_back_to_omrsig_protect(fn, fn_arg, handler, handler_arg, flags);
return OMRPORT_SIG_EXCEPTION_OCCURRED;
}
*/
}

if (0 != omrthread_tls_set(thisThread, tlsKey, &thisRecord)) {
Expand Down

0 comments on commit 8442ac2

Please sign in to comment.