[jdk8u-dev] RFR: 8284620: CodeBuffer may leak _overflow_arena

Andrew John Hughes andrew at openjdk.java.net
Tue May 31 01:38:42 UTC 2022


On Mon, 2 May 2022 12:32:21 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:

> I would like to backport this patch to 8u for fixing a memory leak.
> 
> The original patch does not apply cleanly due to context difference. However, the patch is small, easily resolved manually.
> 
> Test:
> 
> - [x]  hotspot_compiler

This has broken the build on AArch64: https://bugs.openjdk.java.net/browse/JDK-8287537

Not sure if it is related but this change uses `delete _overflow_arena;` while the original has `delete cb->_overflow_arena;`
I'm guessing the AArch64 build is trying to access something it does not expect to be NULL.

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

PR: https://git.openjdk.java.net/jdk8u-dev/pull/52


More information about the jdk8u-dev mailing list