-
Notifications
You must be signed in to change notification settings - Fork 724
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
JEP 498: Warn upon Use of Memory-Access Methods in sun.misc.Unsafe #20632
Comments
Issue Number: 20632 |
I expect it to land by next week. |
I don't think there is any vm work to do here. I will run the OpenJ9 functional tests with |
There were no test failures with |
Issue Number: 20632 |
I would be good to run openjdk testing as well. What happens if we run with |
I'll try with openjdk tests and OpenJ9 does not generate any warning for this, it is done in https://github.com/openjdk/jdk/blob/master/src/jdk.unsupported/share/classes/sun/misc/Unsafe.java#L1860 |
The point is that OpenJ9 implements JCL code that uses Unsafe. If this code ends up generating a warning when run in a user application, this needs to be fixed. |
Does the OpenJ9 JCL code after version 8 use |
I think in theory it's all fine since OpenJ9 should (can) only use jdk.internal.misc.Unsafe. |
I tried sanity and extended tests with The 3 test failures are all due to direct uses of the sun.misc.Unsafe library.
I'll try OpenJDK tests next. |
OpenJdk sanity tests has a failure in sun/misc/UnsafeMemoryAccessWarnings.java.UnsafeMemoryAccessWarnings which is being updated in OpenJDK. @pshipton is there anything else to try before resolving this issue? |
I can't think of anything else. Thanks for double checking. |
Issue Number: 20632 |
See https://openjdk.org/jeps/498
The text was updated successfully, but these errors were encountered: