Skip to content

[GR-36433] Execute shutdown hooks on JNI DestroyJavaVM.#13841

Merged
graalvmbot merged 1 commit into
masterfrom
ph/GR-36433
Jun 23, 2026
Merged

[GR-36433] Execute shutdown hooks on JNI DestroyJavaVM.#13841
graalvmbot merged 1 commit into
masterfrom
ph/GR-36433

Conversation

@graalvmbot

Copy link
Copy Markdown
Collaborator

Execute shutdown hooks on JNI DestroyJavaVM and ignore exceptions, like HotSpot does. We have run startup hooks for CreateJavaVM by default for a while. Startup and shutdown hooks are also always executed with an executable image built for a Java main method.
Note that there's also initialization hooks and tear-down hooks. These are unconditionally invoked on isolate creation and initialization. Startup and shutdown hooks, however, must be invoked explicitly with custom entry points via VMRuntime.initialize and VMRuntime.shutdown (done by libgraal, for example).

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 22, 2026
@graalvmbot graalvmbot closed this Jun 23, 2026
@graalvmbot graalvmbot deleted the ph/GR-36433 branch June 23, 2026 19:38
@graalvmbot graalvmbot merged commit 12a69ca into master Jun 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants