Skip to content
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

Use -fno-omit-frame-pointer on x86_64-mac JIT builds #18346

Merged

Conversation

hzongaro
Copy link
Member

A bug in libunwind on x86_64-macOS results in intermittent crashes from libunwind if a C++ exception is thrown from
OMR::Compilation::failCompilation. In order to work around the problem, the JIT compiler needs to be compiled with -fno-omit-frame-pointer on that combination of CPU and operating system.

That option will be used only on JDK 22 or later builds for now, while the impact on compile-time and start-up performance is evaluated.

Fixes #18321

@hzongaro
Copy link
Member Author

Keith @keithc-ca, Daryl @0xdaryl, may I ask you to review?

runtime/compiler/CMakeLists.txt Outdated Show resolved Hide resolved
runtime/compiler/CMakeLists.txt Outdated Show resolved Hide resolved
Copy link
Contributor

@0xdaryl 0xdaryl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No objections over and above Keith's suggestions.

A bug in libunwind on x86_64-macOS results in intermittent crashes from
libunwind if a C++ exception is thrown from
OMR::Compilation::failCompilation.  In order to work around the problem,
the JIT compiler needs to be compiled with -fno-omit-frame-pointer on
that combination of CPU and operating system.

That option will be used only on JDK 22 or later builds for now, while
the impact on compile-time and start-up performance is evaluated.
@hzongaro hzongaro force-pushed the no-omit-frame-pointer-experiment branch from 3ff6af8 to 30dc783 Compare October 26, 2023 13:55
@hzongaro
Copy link
Member Author

Thanks, Keith! It's ready for a re-review.

@keithc-ca
Copy link
Contributor

Jenkins compile osx jdknext depends ibmruntimes/openj9-openjdk-jdk#openj9-staging

@keithc-ca
Copy link
Contributor

Jenkins compile alinux,osx jdk21

@keithc-ca
Copy link
Contributor

The osx build failed

10:32:29  IOException caught during compilation: Resource deadlock avoided

I think that's an infrastructure issue: restarting.

@keithc-ca keithc-ca merged commit 39fd615 into eclipse-openj9:master Oct 26, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

crash vmState=0x0005ffff building xmac jdk22
3 participants