RFR: 8307926: Support byte-sized atomic bitset operations [v2]
David Holmes
dholmes at openjdk.org
Tue May 16 05:30:52 UTC 2023
On Sat, 13 May 2023 23:08:59 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:
>> Please review this change to add support Atomic byte-sized bitset operations.
>> The existing default implementation using cmpxchg already (by accident) works
>> on such values, because cmpxchg supports byte-sized operations. Any future
>> platform specializations of these operations will need to deal with this size
>> too.
>>
>> The changes consist of updating the requirements documentation for the
>> operations and adding gtests for the newly supported size.
>>
>> Testing:
>> mach5 tier1-3
>> GHA testing
>
> Kim Barrett has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:
>
> - Merge branch 'master' into atomic-bitops-bytes
> - support bitops on bytes
Correction "byte-tearing" is not an issue - the CAS will only update the value of the byte in question. If any other byte is modified concurrently then the CAS will fail.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13952#issuecomment-1549012843
More information about the hotspot-runtime-dev
mailing list