[8u-dev] RFR (XS): 8178047: Aliasing problem with raw memory accesses

David Buck david.buck at oracle.com
Fri Jul 21 08:16:53 UTC 2017


Hi!

May I please get a quick review of this almost completely trivial 
backport to 8u-dev?

bug report:
https://bugs.openjdk.java.net/browse/JDK-8178047

JDK 9 push:
http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/b7690ac63aa5

proposed JDK 8 change:
http://cr.openjdk.java.net/~dbuck/8178047_jdk8_ver01/

The JDK 9 change would have worked as-is except for the following 
package name change:

jdk.internal.misc.Unsafe -> sun.misc.Unsafe

My backport also removed the following annotation from the testcase:

===
@modules java.base/jdk.internal.misc:+open
===

I have confirmed effectiveness of fix with testcase. All standard JPRT 
tests (default and hostspot testsets) pass with this change.

Cheers,
-Buck





More information about the hotspot-compiler-dev mailing list