[jdk21u-dev] RFR: 8330849: Add test to verify memory usage with recursive locking

Aleksey Shipilev shade at openjdk.org
Wed Jun 26 20:59:11 UTC 2024


On Tue, 18 Jun 2024 18:06:22 GMT, Elif Aslan <duke at openjdk.org> wrote:

> Clean backport to add test to verify memory usage with recursive locking.
> This pull request contains a backport of commit [7b2560b4](https://github.com/openjdk/jdk/commit/7b2560b4904d80629d3f4f25c65d9b96eee9bdb6) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository.

I agree we should have talked a bit more about this. But honestly, we can keep the test since it works with the default locking modes. There is no breakage at this point, AFAICS. So we can still revert it at our leisure?

Yes, there is a downside that we cannot run this test cleanly with `LockingMode=2`, which is experimental in JDK 21. This is likely a problem for lightweight locking backports. Then again, I wonder if the only person in the world who cares is @rkennke when maintaining [lilliput-jdk21u](https://github.com/openjdk/lilliput-jdk21u), where [JDK-8319796](https://bugs.openjdk.org/browse/JDK-8319796) is backported.

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

PR Comment: https://git.openjdk.org/jdk21u-dev/pull/747#issuecomment-2192614709


More information about the jdk-updates-dev mailing list