RFR: 8284549: JFR: FieldTable leaks FieldInfoTable member

Markus Grönlund mgronlun at openjdk.java.net
Fri Apr 8 09:42:43 UTC 2022


On Thu, 7 Apr 2022 20:58:23 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.

Looks good, thanks.

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

Marked as reviewed by mgronlun (Reviewer).

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


More information about the hotspot-jfr-dev mailing list