ibmruntimes / openj9-openjdk-jdk17

Extensions for OpenJDK 17 for Eclipse OpenJ9
GNU General Public License v2.0
23 stars 53 forks source link

Add MemberName finalizer to mark clazz for MemberName list pruning #333

Closed jdmpapin closed 5 months ago

jdmpapin commented 5 months ago

This prevents a memory leak in the maintenance of per-class lists used to find affected MemberName objects in case of class redefinition.

This is https://github.com/ibmruntimes/openj9-openjdk-jdk/pull/759 for JDK17. It's essentially the same change as in https://github.com/ibmruntimes/openj9-openjdk-jdk/pull/759, https://github.com/ibmruntimes/openj9-openjdk-jdk22/pull/35, and https://github.com/ibmruntimes/openj9-openjdk-jdk21/pull/136, but the context lines in the diff are different

keithc-ca commented 5 months ago

Validated via a local build.