RFR: 8291736: find_method_handle_intrinsic leaks Method*

Coleen Phillimore coleenp at openjdk.org
Tue Aug 23 15:38:48 UTC 2022


As part of the SymbolPropertyTable conversion, we noticed that threads could race to add the Method entry to the table, and the loser wasn't deleted.  This change locks the InvokeMethodTable_lock through the Method creation so that it's not leaked.  See bug for details, but this was performance tested with our general suite of performance tests to show no significant differences.
Also tested with tier1-3, and previously 4-7 with SymbolPropertyTable conversion patch.

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

Commit messages:
 - 8291736: find_method_handle_intrinsic leaks Method*

Changes: https://git.openjdk.org/jdk/pull/9983/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=9983&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8291736
  Stats: 20 lines in 1 file changed: 0 ins; 9 del; 11 mod
  Patch: https://git.openjdk.org/jdk/pull/9983.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9983/head:pull/9983

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


More information about the hotspot-runtime-dev mailing list