RFR: 8309761: Leak class loader constraints

Coleen Phillimore coleenp at openjdk.org
Mon Jun 12 14:26:58 UTC 2023


On Sat, 10 Jun 2023 02:29:55 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:

> Please review this patch to avoid leaking class loader constraints.

Just reading this now. The reason it's

    GrowableArray<LoaderConstraint*>*  _constraints;   // loader constraints for this class name.

and not

      GrowableArray<LoaderConstraint>*  _constraints;   // loader constraints for this class name.
 
Was basically that it's simpler to understand and manipulate the constraint list as pointers.  Except sadly had a memory leak.

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

PR Comment: https://git.openjdk.org/jdk/pull/14407#issuecomment-1587451708


More information about the hotspot-runtime-dev mailing list