[jdk20] RFR: 8298084: Memory leak in Method::build_profiling_method_data [v4]

Coleen Phillimore coleenp at openjdk.org
Tue Dec 13 01:25:23 UTC 2022


> This change fixes the MethodData leak by calling the destructor in both the release_C_heap_structures conditionally and by calling the MethodData destructor in the MetadataFactory::free_metadata method.
> Thanks to @jcking for working on the patch and discussion.
> Tested with tier1-4.

Coleen Phillimore has updated the pull request incrementally with one additional commit since the last revision:

  Update comment

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

Changes:
  - all: https://git.openjdk.org/jdk20/pull/13/files
  - new: https://git.openjdk.org/jdk20/pull/13/files/11fcdba0..6deb5f46

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk20&pr=13&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk20&pr=13&range=02-03

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk20/pull/13.diff
  Fetch: git fetch https://git.openjdk.org/jdk20 pull/13/head:pull/13

PR: https://git.openjdk.org/jdk20/pull/13


More information about the hotspot-dev mailing list