RFR: JDK-8298084: Memory leak in Method::build_profiling_method_data [v6]

Justin King jcking at openjdk.org
Fri Dec 9 06:24:59 UTC 2022


On Thu, 8 Dec 2022 08:19:26 GMT, Justin King <jcking at openjdk.org> wrote:

>> Resolve memory leak related to `MethodData::_extra_data_lock` in `Method::build_profiling_method_data` by calling `MethodData::~MethodData()`.
>
> Justin King has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add comment to metaprogramming usage
>   
>   Signed-off-by: Justin King <jcking at google.com>

> See: #11601 Was there a test for this?

Not directly, with the proposed approach (I left a comment as I was still a little confused), it might actually be possible. However it will be much easier to catch once I upstream LSan. Speaking of that, I filed https://bugs.openjdk.org/browse/JDK-8298445 as I have been meaning to.

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

PR: https://git.openjdk.org/jdk/pull/11526


More information about the hotspot-dev mailing list