Integrated: 8330849: Add test to verify memory usage with recursive locking

Roman Kennke rkennke at openjdk.org
Wed Apr 24 18:59:36 UTC 2024


On Mon, 22 Apr 2024 18:33:11 GMT, Roman Kennke <rkennke at openjdk.org> wrote:

> Before recursive support has been added to lightweight locking, using recursive locking patterns would inflate lightweight locks to full monitors. In some scenarios (when churning lots of recursively locked objects), this could lead to excessive native memory usage. I'd like to add a test that verifies that this does not happen.
> 
> I verified that the new test fails reliably with an earlier commit that did not have LW recursive locking, yet, and passes with latest LW recursive locking.

This pull request has now been integrated.

Changeset: 7b2560b4
Author:    Roman Kennke <rkennke at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/7b2560b4904d80629d3f4f25c65d9b96eee9bdb6
Stats:     95 lines in 1 file changed: 95 ins; 0 del; 0 mod

8330849: Add test to verify memory usage with recursive locking

Reviewed-by: lmesnik, shade

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

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


More information about the hotspot-runtime-dev mailing list