RFR: 8310264: In PhaseChaitin::Split defs and phis are leaked
Tobias Hartmann
thartmann at openjdk.org
Mon Jun 19 05:29:06 UTC 2023
On Sat, 17 Jun 2023 16:08:53 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:
> 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
Looks good to me.
-------------
Marked as reviewed by thartmann (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/14530#pullrequestreview-1485429468
More information about the hotspot-compiler-dev
mailing list