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

Fix VM snapshotting failures relating to OpenJDK MethodHandles #20872

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

Fix VM snapshotting failures relating to OpenJDK MethodHandles #20872

ThanHenderson opened this issue Dec 30, 2024 · 0 comments

Comments

@ThanHenderson
Copy link
Contributor

VM snapshotting is tested and functional (however limited) on JDK 8 and JDK 11 (both of which currently use OpenJ9 Method Handles (MH) by default). From JDK 17 and on, OpenJDK Method Handles are used by default.

I have seen an issue when testing on JDK 17+ where OpenJDK MH specific code is functioning incorrectly when snapshotting is enabled. Namely, addMemberNameToClass walks over J9Class::memberNames that consists of J9MemberNameListNodes. However, the J9MemberNameListNode::memberName is in an invalid state s.t. this line fails with a seg fault.

I think the MemberNames need to be added to the VM snapshot and/or fixed up when writing J9Classes to the snapshot, and handled appropriately on restore.

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