Integrated: 8337938: ZUtils::alloc_aligned allocates without reporting to NMT
Joel Sikström
duke at openjdk.org
Mon Aug 12 11:01:37 UTC 2024
On Fri, 9 Aug 2024 12:47:18 GMT, Joel Sikström <duke at openjdk.org> wrote:
> Replaces usage of posix_memalign/_aligned_malloc with os::malloc and manual alignment to report memory usage to NMT. Manually aligning the memory makes the returned address unfreeable by malloc (as clarified by the added comment), which is reasonable since the memory used by ZUtils::alloc_aligned is never freed.
>
> Tested with tiers 1-3.
This pull request has now been integrated.
Changeset: a6c06307
Author: Joel Sikström <joel.sikstrom at oracle.com>
Committer: Stefan Karlsson <stefank at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/a6c0630737bbf2f2e6c64863ff9b43c50c4742b6
Stats: 104 lines in 6 files changed: 13 ins; 83 del; 8 mod
8337938: ZUtils::alloc_aligned allocates without reporting to NMT
Reviewed-by: stefank, kbarrett
-------------
PR: https://git.openjdk.org/jdk/pull/20523
More information about the hotspot-gc-dev
mailing list