[8u] RFR 8141491: Unaligned memory access in Bits.c
mikael.vidstedt at oracle.com
Wed Nov 7 21:34:59 UTC 2018
Looks good. A few comments:
javadoc for copySwapMemory says “@since 9” which seems confusing at best.
The original change in jdk9 only added the new methods to the jdk internal Unsafe, while this back port adds them to sun.misc.Unsafe. I’ll leave it for somebody else to comment on the appropriateness of that.
* CopySwap.java test
You’ll probably want to back port the test covered by https://bugs.openjdk.java.net/browse/JDK-8149611 <https://bugs.openjdk.java.net/browse/JDK-8149611> as well. It was supposed to go in together with the fix.
> On Nov 7, 2018, at 9:45 AM, David Buck <david.buck at oracle.com> wrote:
> May I please get a review of this straightforward backport from JDK 9 to JDK 8:
> bug report:
> JDK 9 change sets:
> JDK 9 review thread:
> JDK 8 webrevs (for review):
> The backport is almost line-for-line the same as the JDK 9 fix with the following exceptions:
> - assertions / guarantees need to have their format strings wrapped with err_msg() 
> - there is no need to "backout" of JDK-8140630 , which was never backported to JDK 8 in the first place.
> This fix is urgently needed for JDK 8 built with newer versions of GCC.
>  https://bugs.openjdk.java.net/browse/JDK-8080775
>  https://bugs.openjdk.java.net/browse/JDK-8140630
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nio-dev