RFR: 8367013: Add Atomic<T> to package/replace idiom of volatile var plus AtomicAccess:: operations [v5]
Axel Boldt-Christmas
aboldtch at openjdk.org
Wed Oct 22 06:55:10 UTC 2025
On Wed, 22 Oct 2025 06:39:49 GMT, Axel Boldt-Christmas <aboldtch at openjdk.org> wrote:
> So in the following code snippet neither `Atomic<EnumClass16>` nor `Atomic<uint16_t>` can be compiled.
It seems like this is expected by the implementation (only allow Integer 32/64, or Byte 8). But it is unexpected for me that `Atomic<T>` does not support these types while AtomicAccess does.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27539#issuecomment-3430734730
More information about the hotspot-dev
mailing list