On Fri, 14 Aug 2026 21:17:29 GMT, Leonid Mesnik <[email protected]> wrote:
>> src/hotspot/share/services/threadService.cpp line 1502: >> >>> 1500: >>> 1501: // Locks >>> 1502: refArrayHandle locks; >> >> It looks like "refArrayHandle locks" can also be moved into the "if" block >> below. > > the locks is used in > `1531: jdk_internal_vm_ThreadSnapshot::set_locks(snapshot(), locks());` > to initialize "locks" field. > The section init whole class, so let don't change this. Ok. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/32363#discussion_r3787407202
