-
Notifications
You must be signed in to change notification settings - Fork 738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unclear use of OMRSIG_SIGNAL / OMRSIG_SIGACTION #1889
Comments
@dnakamura OMRPORT_OMRSIG_SUPPORT should be defined globally. OpenJ9 and OMR should consistently use either How should we enable |
I would maybe add something to the bottom of
|
@dnakamura In OpenJ9, the If we use the above approach to enable Will the below changes work?
Also, did you find a fix for the linkage issue which occurs when |
A number of places in the jvm ( eg 1 2 3 among others ), we use the macros
OMRSIG_SIGNAL
/OMRSIG_SIGACTION
These macros are conditionally defined inomrport.h
to expand toomrsig_primary_signal
/omr_primary_sigaction
ifOMRPORT_OMRSIG_SUPPORT
is defined, orsignal
/sigaction
otherwise.The issue is that we only define
OMRPORT_OMRSIG_SUPPORT
when compiling the port library. Thus these other reference are actually just callingsignal
/sigaction
. Is this the intended behaviour? If so, shouldn't we make it more clear by avoiding the use of the macros? If not, we should be definingOMRPORT_OMRSIG_SUPPORT
globally, or merging it withOMR_OMRPORT
.The text was updated successfully, but these errors were encountered: