RFR: 8319773: Avoid inflating monitors when installing hash codes for LM_LIGHTWEIGHT [v2]
Axel Boldt-Christmas
aboldtch at openjdk.org
Mon Nov 13 07:39:12 UTC 2023
On Mon, 13 Nov 2023 00:54:49 GMT, David Holmes <dholmes at openjdk.org> wrote:
>> Axel Boldt-Christmas has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Simplify test.
>
> test/hotspot/jtreg/runtime/whitebox/TestWBDeflateIdleMonitors.java line 69:
>
>> 67: obj = new Object();
>> 68: synchronized (obj) {
>> 69: if (LockingMode != LM_LIGHTWEIGHT) {
>
> I don't think we need to make this test behave differently because of implementation details of different locking modes. Just use `wait(1)` unconditionally. Thanks.
Done.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16603#discussion_r1390703852
More information about the hotspot-dev
mailing list