RFR: 8256811: Delayed/missed jdwp class unloading events [v17]

Zhengyu Gu zgu at openjdk.org
Mon Jul 18 23:12:11 UTC 2022


On Mon, 18 Jul 2022 20:04:14 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> Zhengyu Gu has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fix a bug
>
> src/hotspot/share/prims/jvmtiTagMap.cpp line 1223:
> 
>> 1221:       MonitorLocker ml(lock(), Mutex::_no_safepoint_check_flag);
>> 1222:       // If another thread is posting events, let it finish
>> 1223:       bool posting = _posting_events;
> 
> Should this be volatile or use OrderAccess::load_acquire() so it's reread?

No, setting and reading `_posting_events` are done under lock, so it is safe.

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

PR: https://git.openjdk.org/jdk/pull/9168


More information about the serviceability-dev mailing list