RFR: 8378194: Protect process_pending_interp_only() work with JvmtiThreadState_lock [v3]
Serguei Spitsyn
sspitsyn at openjdk.org
Tue Feb 24 02:08:27 UTC 2026
On Sat, 21 Feb 2026 10:23:18 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:
>> src/hotspot/share/prims/jvmtiThreadState.hpp line 215:
>>
>>> 213: // It is cleared by EnterInterpOnlyModeClosure handshake.
>>> 214: bool is_pending_interp_only_mode() {
>>> 215: return AtomicAccess::load(&_pending_interp_only_mode);
>>
>> Does it matter to made
>> `Atomic<bool> _pending_interp_only_mode `
>> ?
>>
>> Seems the AtomicAccess is converted to `Atomic<T>` anywhere in the hotspot.
>
> Yes, thanks. Fixed.
Okay, now converted `volatile bool` to `Atomic<bool>`. Thank you for the suggestion.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29800#discussion_r2844059207
More information about the serviceability-dev
mailing list