RFR: 8337938: ZUtils::alloc_aligned allocates without reporting to NMT

Kim Barrett kbarrett at openjdk.org
Mon Aug 12 05:21:32 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.

Looks good, except for some copyrights needing update.

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

Marked as reviewed by kbarrett (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/20523#pullrequestreview-2232062157


More information about the hotspot-gc-dev mailing list