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

Johan Sjölen jsjolen at openjdk.org
Tue Jun 20 10:35:25 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:

  Be conservative in sizing to be close to original behavior

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

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

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

  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