RFR: 8286870: Memory leak with RepeatCompilation

Christian Hagedorn chagedorn at openjdk.java.net
Wed May 18 10:46:01 UTC 2022


On Tue, 17 May 2022 11:50:38 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:

> While using `RepeatCompilation` in combination with replay compilation and stress options to reproduce an intermittent issue, I noticed that it does not free the compiler thread arena after each compilation, leading to a (temporary) memory leak and out of memory errors. For example, each compilation of [JDK-8280696](https://bugs.openjdk.java.net/browse/JDK-8280696) allocates an additional 1218 kB.
> 
> The fix is to simply add a `ResourceMark` in the loop.
> 
> Thanks,
> Tobias

Looks good!

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

Marked as reviewed by chagedorn (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/8744


More information about the hotspot-compiler-dev mailing list