RFR: 8335121: Native memory leak when not recording any events
SendaoYan
syan at openjdk.org
Wed Aug 7 03:24:40 UTC 2024
On Thu, 1 Aug 2024 21:12:59 GMT, Markus Grönlund <mgronlun at openjdk.org> wrote:
> Greetings,
>
> This minor adjustment prevents thread metadata memory from growing continuously when JFR does not record any events. A recording is running, meaning new threads will register their metadata. However, since no events are generated, metadata processing, including deallocation, is skipped. This is an old optimization that is no longer valid and is, therefore, removed.
>
> Testing: jdk_jfr
>
> Thanks
> Markus
Maybe we can add a testcase for this PR.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20434#issuecomment-2272540529
More information about the hotspot-jfr-dev
mailing list