RFR: 8284549: JFR: FieldTable leaks FieldInfoTable member
Zhengyu Gu
zgu at openjdk.java.net
Fri Apr 8 15:23:45 UTC 2022
On Fri, 8 Apr 2022 09:38:56 GMT, Markus Grönlund <mgronlun at openjdk.org> wrote:
>> `FieldTable` is a `ResourceObj` and it has a member points to `FieldInfoTable`, which is a `CHeapObj`.
>>
>> Since ResouceObj's destructor is never called, so it can not depend on `FieldTable`s destructor to free `FieldInfoTable`, it needs to be freed explicitly.
>
> Looks good, thanks.
Thanks for the review, @mgronlun
-------------
PR: https://git.openjdk.java.net/jdk/pull/8149
More information about the hotspot-jfr-dev
mailing list