RFR: 8369692: JFR: Don't record thread metadata in case jdk.ThreadStart is disabled
Markus Grönlund
mgronlun at openjdk.org
Mon Nov 10 19:42:58 UTC 2025
On Mon, 10 Nov 2025 18:52:31 GMT, Kerem Kat <krk at openjdk.org> wrote:
> ### Before
> File size: 0.84 MB
> Scrubbed size: 0.82 MB
> Waste: 2.73%
>
> ### After
> File size: 0.80 MB
> Scrubbed size: 0.78 MB
> Waste: 3.40%
>
> File size decreases when `ThreadStart` and `ThreadEnd` events are disabled.
This is not correct, because now thread information will be missing for other events.
Solving this proper would involve introducing a lazy write scheme of thread metadata on first use, but this can have other impacts, like the need to check for every event.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28222#issuecomment-3513586854
More information about the hotspot-jfr-dev
mailing list