RFR: JDK-8298084: Memory leak in Method::build_profiling_method_data [v6]
Justin King
jcking at openjdk.org
Fri Dec 9 05:34:09 UTC 2022
On Thu, 8 Dec 2022 20:28:45 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
> I can't find why we thought it was more performant to embed the mutex in MethodData.
If I had to guess, its because it removes an allocation. Mutex currently performs strdup on the name. So creating a Mutex via `new` requires 2 allocations. Embedding it requires 1.
-------------
PR: https://git.openjdk.org/jdk/pull/11526
More information about the hotspot-dev
mailing list