RFR: 8286870: Memory leak with RepeatCompilation

Vladimir Kozlov kvn at openjdk.java.net
Tue May 17 16:19: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

Good.

You got github testing failures.

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

Marked as reviewed by kvn (Reviewer).

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


More information about the hotspot-compiler-dev mailing list