RFR: 8330849: Add test to verify memory usage with recursive locking [v2]

Roman Kennke rkennke at openjdk.org
Mon Apr 22 20:05:42 UTC 2024


> 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.

Roman Kennke has updated the pull request incrementally with one additional commit since the last revision:

  Make test less restrictive

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/18899/files
  - new: https://git.openjdk.org/jdk/pull/18899/files/3031942c..266f67d4

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=18899&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18899&range=00-01

  Stats: 3 lines in 1 file changed: 0 ins; 1 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/18899.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/18899/head:pull/18899

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


More information about the hotspot-runtime-dev mailing list