RFR: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning [v3]
Axel Boldt-Christmas
aboldtch at openjdk.org
Wed Oct 23 05:59:09 UTC 2024
On Wed, 23 Oct 2024 00:08:54 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
>> src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp line 5341:
>>
>>> 5339:
>>> 5340: void MacroAssembler::inc_held_monitor_count() {
>>> 5341: Address dst = Address(rthread, JavaThread::held_monitor_count_offset());
>>
>> Suggestion:
>>
>> // Clobbers: rscratch1 and rscratch2
>> void MacroAssembler::inc_held_monitor_count() {
>> Address dst = Address(rthread, JavaThread::held_monitor_count_offset());
>
> Also, is it better to have this without assignment. Which is a nit.
> Address dst(rthread, JavaThread::held_monitor_count_offset());
The `=` in a variable definition is always construction, never assignment.
That said, I also prefer `Address dst(rthread, JavaThread::held_monitor_count_offset());` Less redundant information.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21565#discussion_r1811925424
More information about the nio-dev
mailing list