RFR: JDK-8298084: Memory leak in Method::build_profiling_method_data
Coleen Phillimore
coleenp at openjdk.org
Wed Dec 7 02:25:15 UTC 2022
On Tue, 6 Dec 2022 06:13:23 GMT, Justin King <jcking at openjdk.org> wrote:
> Resolve memory leak related to `MethodData::_extra_data_lock` in `Method::build_profiling_method_data` by defining `MethodData::release_C_heap_structures` and calling it where appropriate before deallocating `MethodData`.
src/hotspot/share/oops/methodData.cpp line 1826:
> 1824:
> 1825: void MethodData::deallocate_contents(ClassLoaderData* loader_data) {
> 1826: assert(_extra_data_lock == NULL, "memory leak");
I don't know why you didn't make deallocate_contents call release_C_heap_structures, like the other metadata deallocate_contents functions do?
-------------
PR: https://git.openjdk.org/jdk/pull/11526
More information about the hotspot-dev
mailing list