RFR: JDK-8300582: Introduce interface for unaligned memory accesses [v2]
David Holmes
dholmes at openjdk.org
Fri Jan 20 06:34:34 UTC 2023
On Wed, 18 Jan 2023 21:42:58 GMT, Justin King <jcking at openjdk.org> wrote:
>> Introduce interface for unaligned memory accesses `UnalignedAccess`, consolidate the byte swapping implementation to `byteswap`, and switch to a generic implementation of `Bytes`.
>
> Justin King has updated the pull request incrementally with one additional commit since the last revision:
>
> Update comment to be correct
>
> Signed-off-by: Justin King <jcking at google.com>
src/hotspot/share/utilities/byteswap.hpp line 61:
> 59: #include <type_traits>
> 60:
> 61: #if defined(_MSC_VER)
I'd rather see OS specific header files to do all this than pollute what is supposed to be shared code with all this OS specific stuff.
-------------
PR: https://git.openjdk.org/jdk/pull/12078
More information about the hotspot-dev
mailing list