RFR: 8284549: JFR: FieldTable leaks FieldInfoTable member [v2]

Thomas Stuefe stuefe at openjdk.java.net
Sun Apr 10 05:52:35 UTC 2022


On Sun, 10 Apr 2022 00:04:29 GMT, Zhengyu Gu <zgu 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.
>
> Zhengyu Gu has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Thomas' comment

Looks good!

-------------

Marked as reviewed by stuefe (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/8149


More information about the hotspot-jfr-dev mailing list