Integrated: 8286870: Memory leak with RepeatCompilation
Tobias Hartmann
thartmann at openjdk.java.net
Wed May 18 11:16:48 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
This pull request has now been integrated.
Changeset: 69ff86a3
Author: Tobias Hartmann <thartmann at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/69ff86a32088d9664e5e0dae12edddc0643e3fd3
Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod
8286870: Memory leak with RepeatCompilation
Reviewed-by: kvn, chagedorn
-------------
PR: https://git.openjdk.java.net/jdk/pull/8744
More information about the hotspot-compiler-dev
mailing list