RFR: 8310264: In PhaseChaitin::Split defs and phis are leaked

Johan Sjölen jsjolen at openjdk.org
Sat Jun 17 16:17:21 UTC 2023


Hi,

`defs` and `phis` are leaked as they are resource allocated but not protected by a `ResourceMark`. The intention might have been for these to also live in the `split_arena`.. This change is the most conservative one, however, and does fix the memory leak.

Please consider, thanks.

Johan

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

Commit messages:
 - Add in missing ResourceMark

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

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


More information about the hotspot-compiler-dev mailing list