RFR: 8366671: Refactor Thread::SpinAcquire and Thread::SpinRelease [v7]

Anton Artemov aartemov at openjdk.org
Thu Nov 20 10:37:26 UTC 2025


On Thu, 20 Nov 2025 06:14:51 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> src/hotspot/share/utilities/spinCriticalSection.hpp line 30:
>> 
>>> 28: #include "runtime/javaThread.hpp"
>>> 29: 
>>> 30: class SpinCriticalSectionHelper : AllStatic {
>> 
>> SpinCriticalSectionHelper is only used (and only usable by)
>> SpinCriticalSection. There doesn't seem to be any benefit to the separation
>> now.
>
> I agree.

Removed in the latest commit.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/28264#discussion_r2545362459


More information about the hotspot-dev mailing list