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

(0.39) Sync JVM init and exit paths #17417

Merged

Conversation

babsingh
Copy link
Contributor

@babsingh babsingh commented May 16, 2023

JVM init path: J9_CreateJavaVM.
JVM exit paths: protectedDestroyJavaVM and exitJavaVM.

A segfault can happen if JVM init and exit paths execute concurrently. This can happen if a shutdown signal is raised and the shutdown handler is invoked. JVM shutdown signals are SIGINT, SIGTERM and SIGHUP.

The JVM exit paths wait or spin until the JVM has successfully initialized.

This should prevent clean up (freeing of memory) until the JVM has successfully initialized, and resolve the associated segfaults.

Internal issue: 148771

Backport of #17101

JVM init path: J9_CreateJavaVM.
JVM exit paths: protectedDestroyJavaVM and exitJavaVM.

A segfault can happen if JVM init and exit paths execute concurrently.
This can happen if a shutdown signal is raised and the shutdown handler
is invoked. JVM shutdown signals are SIGINT, SIGTERM and SIGHUP.

The JVM exit paths wait or spin until the JVM has successfully
initialized.

This should prevent clean up (freeing of memory) until the JVM has
successfully initialized, and resolve the associated segfaults.

Internal issue: 148771

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
@babsingh
Copy link
Contributor Author

fyi @keithc-ca @tajila @gacholio

@gacholio gacholio merged commit d42c916 into eclipse-openj9:v0.39.0-release May 16, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants