[master] RFR: 8371186: Lilliput2: Disable JFR Leak Profiler & related tests until it's fixed with +UseCompactObjectHeaders
Y. Srinivas Ramakrishna
ysr at openjdk.org
Wed Nov 5 00:19:13 UTC 2025
The JFR leak profiler stores an encoded reference to a (canonical) path from roots to each of a set of sampled objects after GC at some interval in the space available in the displaced mark word on the sampled object's header. With Lilliput2, there isn't enough space to store such information in the header. Instead, we probably want to use a side hashtable to temporarily keep such information. We've filed a ticket to do that work.
Meanwhile, in this PR, we will disable the Leak Profiler when Lilliput2's `UseCompactObjectHeaders` is enabled. (This is already done in the Leak Profiler, e.g., for Shenanodah GC.)
We'll also disable tests of the LeakProfiler when Lilliput2's UseCompactObjectHeaders is enabled.
The JFR Leak Profiler workaround and the disabled tests will need to be re-enabled once the Leak Profiler is reworked to not use the object header in this manner in Lilliput2 with +UseCompactObjectHeaders.
-------------
Commit messages:
- More minor tweaks
- - fix typo
- More tweaks related to flagless and UCOH etc. for tests.
- 1. disable leak profiler if Lilliput2
- - Fix BYTE_ARRAY_OVERHEAD for the case of Lilliput2 for another couple
- - Add a new assertion and expand an assertion message in the leak
Changes: https://git.openjdk.org/lilliput/pull/205/files
Webrev: https://webrevs.openjdk.org/?repo=lilliput&pr=205&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8371186
Stats: 74 lines in 32 files changed: 52 ins; 6 del; 16 mod
Patch: https://git.openjdk.org/lilliput/pull/205.diff
Fetch: git fetch https://git.openjdk.org/lilliput.git pull/205/head:pull/205
PR: https://git.openjdk.org/lilliput/pull/205
More information about the lilliput-dev
mailing list