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

[24] JEP 498: Warn upon Use of Memory-Access Methods in sun.misc.Unsafe #3364

Closed
Tracked by #2899
mpalat opened this issue Nov 28, 2024 · 1 comment
Closed
Tracked by #2899
Assignees

Comments

@mpalat
Copy link
Contributor

mpalat commented Nov 28, 2024

REF: https://openjdk.org/jeps/498

Summary
Issue a warning at run time on the first occasion that any memory-access method in sun.misc.Unsafe is invoked. All of these unsupported methods were terminally deprecated in JDK 23. They have been superseded by standard APIs, namely the VarHandle API (JEP 193, JDK 9) and the Foreign Function & Memory API (JEP 454, JDK 22). We strongly encourage library developers to migrate from sun.misc.Unsafe to supported replacements, so that applications can migrate smoothly to modern JDK releases.

@mpalat mpalat added this to the BETA_JAVA24 milestone Nov 28, 2024
@mpalat mpalat self-assigned this Dec 4, 2024
@mpalat mpalat modified the milestones: BETA_JAVA24, BETA_JAVA24 M2 Dec 4, 2024
@mpalat
Copy link
Contributor Author

mpalat commented Dec 4, 2024

JDT not affected - closing

@mpalat mpalat closed this as completed Dec 4, 2024
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