Integrated: 8315131: Clarify VarHandle set/get access on 32-bit platforms
Chen Liang
liach at openjdk.org
Tue Jul 22 17:28:10 UTC 2025
On Thu, 10 Jul 2025 23:40:15 GMT, Chen Liang <liach at openjdk.org> wrote:
> On 32 bit platforms, when an access to long/double is aligned, it is supported but not atomic. The original wording in `MethodHandles::byteBufferViewVarHandle` sounds as if it is not supported at all. We can fix that by borrowing the improved specification from `MemoryLayout::varHandle`.
>
> Note: This doc is copied from https://github.com/openjdk/jdk/blob/ee0d309bbd33302d8c6f35155e975db77aaea785/src/java.base/share/classes/java/lang/foreign/MemoryLayout.java#L279-L282 with slight adjustments. See the rendering at https://docs.oracle.com/en/java/javase/24/docs/api/java.base/java/lang/foreign/MemoryLayout.html#access-mode-restrictions
This pull request has now been integrated.
Changeset: ea6674fe
Author: Chen Liang <liach at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/ea6674fec8702eea481afa7ca7e522cbacd53841
Stats: 8 lines in 2 files changed: 1 ins; 0 del; 7 mod
8315131: Clarify VarHandle set/get access on 32-bit platforms
Reviewed-by: rgiulietti, mcimadamore, jrose, shade, psandoz
-------------
PR: https://git.openjdk.org/jdk/pull/26258
More information about the core-libs-dev
mailing list