Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't invoke shutdown signal handler until JVM init completes
JVM init path: J9_CreateJavaVM. JVM exit paths: protectedDestroyJavaVM and exitJavaVM. A segfault or other side-effects can happen if the JVM init and exit paths execute concurrently. The exit path can be taken if a shutdown signal is raised and the shutdown handler is invoked. JVM shutdown signals are SIGINT, SIGTERM and SIGHUP. Preventing invocation of the exit path from the shutdown signal handler until the JVM initialization completes resolves the above side-effects. Related: - #17101 - #17438 Signed-off-by: Babneet Singh <[email protected]>
- Loading branch information