RFR: JDK-8298084: Memory leak in Method::build_profiling_method_data
Tobias Hartmann
thartmann at openjdk.org
Wed Dec 7 07:44:51 UTC 2022
On Tue, 6 Dec 2022 22:36:14 GMT, David Holmes <dholmes at openjdk.org> wrote:
> I'm struggling to see how [JDK-8297389](https://bugs.openjdk.org/browse/JDK-8297389) affected this. ??
[JDK-8297389](https://bugs.openjdk.org/browse/JDK-8297389) added the call to `MetadataFactory::free_metadata` in `Method::build_profiling_method_data` which does not free `MethodData::_extra_data_lock`. As Coleen explained: "Methods are attached to InstanceKlass so let InstanceKlass call release_C_heap_structures for them, except for this case that was added for MethodData here."
-------------
PR: https://git.openjdk.org/jdk/pull/11526
More information about the hotspot-dev
mailing list