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

Audit VM shutdown procedure to reliably create a VM snapshot #20873

Open
ThanHenderson opened this issue Dec 30, 2024 · 0 comments
Open

Audit VM shutdown procedure to reliably create a VM snapshot #20873

ThanHenderson opened this issue Dec 30, 2024 · 0 comments

Comments

@ThanHenderson
Copy link
Contributor

While testing VM snapshotting on a JDK:

openjdk version "25-internal" 2025-09-16
OpenJDK Runtime Environment (build 25-internal-adhoc.root.rel)
Eclipse OpenJ9 VM (build master-f806233768, JRE 25 Linux amd64-64-Bit Compressed References 20241230_000000 (JIT enabled, AOT enabled)
OpenJ9   - f806233768
OMR      - 7af9de5d5
JCL      - ccbec431ad0 based on jdk-25+2)

freeJavaVM does not get called during protectedDestroyJavaVM. Rather, this path is always taken. This prevents a VM snapshot from being created and persisted to disk because the creation paths are in freeJavaVM which is called later in that function.

I know this behaviour begins to happen between JDK 21 (which I have tested and it does not happen) and the build above. i.e. I am unsure if it also affects JDK23 since I haven't gotten to testing that yet.

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

No branches or pull requests

1 participant