Integrated: 8312200: Fix Parse::catch_call_exceptions memory leak

Johan Sjölen jsjolen at openjdk.org
Wed Jul 19 09:06:50 UTC 2023


On Tue, 18 Jul 2023 11:33:38 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:

> Hi,
> 
> We used to allocate some `GrowableArray`s onto the `node_arena` in `Parse::catch_call_exceptions`. This leaves the allocated memory until the compilation has finished, potentially increasing the maximum memory usage. I've fixed this by allocating the memory on a temporary `Arena` instead. I also switched the `GrowableArray`s themselves to being stack allocated.
> 
> Also a few stylistic issues were addressed.

This pull request has now been integrated.

Changeset: d33e8e6f
Author:    Johan Sjölen <jsjolen at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/d33e8e6f93d7b0806e1d0087c3c0a11fe1bc8e21
Stats:     20 lines in 1 file changed: 1 ins; 0 del; 19 mod

8312200: Fix Parse::catch_call_exceptions memory leak

Reviewed-by: kvn, thartmann

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

PR: https://git.openjdk.org/jdk/pull/14921


More information about the hotspot-compiler-dev mailing list