RFR: JDK-8298084: Memory leak in Method::build_profiling_method_data
Tobias Hartmann
thartmann at openjdk.org
Wed Dec 7 09:09:01 UTC 2022
On Wed, 7 Dec 2022 08:50:31 GMT, Justin King <jcking at openjdk.org> wrote:
> IMO the destructor should just be called from MetadataFactory::free_metadata before returning the memory to the underlying arena. That way the destructor is the last thing called and not accessed again. Destructors mark the end of the objects lifetime.
Yes, that does sound like the right thing to do.
-------------
PR: https://git.openjdk.org/jdk/pull/11526
More information about the hotspot-dev
mailing list