RFR: 8369692: JFR: Don't record thread metadata in case jdk.ThreadStart is disabled
Markus Grönlund
mgronlun at openjdk.org
Wed Nov 12 10:10:19 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.
[JDK-8364258](https://bugs.openjdk.org/browse/JDK-8364258) introduced a normalization scheme also for threads, to ensure thread metadata is only written once per chunk. This significantly reduced the number of checkpoints for a thread.
I am therefore skeptical to pursuing this PR, because the overall win probably does not warrant the added complexities.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28222#issuecomment-3521118780
More information about the hotspot-jfr-dev
mailing list