Integrated: 8316661: CompilerThread leaks CodeBlob memory when dynamically stopping compiler thread in non-product

Thomas Schatzl tschatzl at openjdk.org
Wed Sep 27 15:18:30 UTC 2023


On Thu, 21 Sep 2023 11:18:36 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

> Hi all,
> 
>   please review this change to fix a memory leak I found when having `CodeCache::free` call the destructor of `CodeBlob`: when adding the latter, one gets assertion failures that the native memory that `_asm_remarks` and `_dbg_strings` members were not deallocated properly when
> * stopping a compiler thread due to dynamic compiler thread policy
> * shutting down the compiler runtime
> 
> Testing: gha
> 
> Thanks,
>   Thomas

This pull request has now been integrated.

Changeset: edcc559f
Author:    Thomas Schatzl <tschatzl at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/edcc559f09364da3692862e1f3d0636aa8eec1d4
Stats:     58 lines in 6 files changed: 19 ins; 32 del; 7 mod

8316661: CompilerThread leaks CodeBlob memory when dynamically stopping compiler thread in non-product

Reviewed-by: kvn, thartmann

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

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


More information about the hotspot-compiler-dev mailing list