-
Notifications
You must be signed in to change notification settings - Fork 396
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
Fix compile and test errors with OSX omrintrospect #6467
Conversation
Signed-off-by: Eric Yang <eric.yang@ibm.com>
209dcaf
to
6f93d28
Compare
What is the intent of this change? nmap/nmap#180 and its references recommend not to use |
|
If we want to avoid |
Ran aarch64_mac tests and failed tests now pass https://hyc-runtimes-jenkins.swg-devops.com/job/Test_openjdk11_j9_sanity.functional_aarch64_mac_Personal/7/tapResults/ |
This is with eclipse-openj9/openj9#14201 |
jenkins build osx |
The reason for the cmdLineTester_CryptoTest_0 failure on AArch64 macOS above is the OpenSSL build settings. You don't need to care about it. |
eclipse-openj9/openj9#14201 fixes the aarch64_mac failures in eclipse-openj9/openj9#14892 (this PR only fixes a build error), however the openj9 PR cannot be merged since that would enable javacores for osx while the implementation isn't promoted (blocked right now). Would it make sense to split eclipse-openj9/openj9#14201 and merge its dmpsup.c and gphandle.c changes first? |
862dcde
to
4aa4d26
Compare
|
Just ran https://hyc-runtimes-jenkins.swg-devops.com/view/OpenJ9%20-%20Personal/job/Pipeline-Build-Test-Personal/12638/ with the second commit on this PR and the tests pass as well. Would it be better to merge this PR instead? |
Does this mean that the dmpsup.c and gphandle.c changes in eclipse-openj9/openj9#14201 are no longer needed? |
Yes. It seems like something in |
Yes, it will be better to isolate all changes within OMR if changes to downstream projects can be avoided. Instead of just disabling
|
4aa4d26
to
f784f8d
Compare
f784f8d
to
fbd2fac
Compare
|
fbd2fac
to
d2961fe
Compare
d2961fe
to
0b42bb9
Compare
jenkins build osx |
https://hyc-runtimes-jenkins.swg-devops.com/view/OpenJ9%20-%20Personal/job/Pipeline-Build-Test-Personal/12658/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. @keithc-ca @0xdaryl, for final review and merge.
FYI OMR promotion to OpenJ9 was blocked by #6267, and should be unblocked by this PR. |
Looks fine to me. @keithc-ca : could you formally approve please? |
@@ -42,6 +42,7 @@ | |||
|
|||
#include "omrintrospect.h" | |||
|
|||
#if !defined(OMR_ARCH_AARCH64) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have preferred that the condition here matched the condition that enables use of these functions, that is defined(OMR_ARCH_X86)
instead of !defined(OMR_ARCH_AARCH64)
, but given those are the only two architectures on which macOS is supported, the conditions are equivalent for all practical purposes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am going to implement the backtrace feature for AArch64 macOS sometime later.
I would like this PR to be merged soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My previous minor comment can be addressed later, certainly by adding support for aarch64.
clock_gettime()
togettimeofday()
as the former is unavailable in earlier versions of OSXSigned-off-by: Eric Yang eric.yang@ibm.com