RFR: 8310264: In PhaseChaitin::Split defs and phis are leaked [v5]

Johan Sjölen jsjolen at openjdk.org
Wed Jun 28 12:26:18 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

Johan Sjölen has updated the pull request incrementally with one additional commit since the last revision:

  Revert to list init

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/14530/files
  - new: https://git.openjdk.org/jdk/pull/14530/files/7035bb4e..52e3acfe

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=14530&range=04
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=14530&range=03-04

  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 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