RFR: 8366671: Refactor Thread::SpinAcquire and Thread::SpinRelease [v6]
Kim Barrett
kbarrett at openjdk.org
Wed Nov 19 20:21:38 UTC 2025
On Wed, 19 Nov 2025 14:03:32 GMT, Anton Artemov <aartemov at openjdk.org> wrote:
>> src/hotspot/share/utilities/spinCriticalSection.hpp line 45:
>>
>>> 43: class SpinCriticalSection {
>>> 44: private:
>>> 45: volatile int* const _lock;
>>
>> Use new `Atomic<T>` rather than introducing new direct uses of `AtomicAccess`.
>
> This will require somewhat extensive changes in JFR, as the are using the same thing for their JfrTryLock.
OK, leave it to the "upgrade all the world to use `Atomic<T>`" task with it's many subtasks. (There isn't
such a thing in JBS; I've just been linking new RFEs to JDK-8367013.)
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28264#discussion_r2543432729
More information about the hotspot-dev
mailing list