RFR: 8337938: ZUtils::alloc_aligned allocates without reporting to NMT
    Stefan Karlsson 
    stefank at openjdk.org
       
    Fri Aug  9 13:30: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.
-------------
Marked as reviewed by stefank (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/20523#pullrequestreview-2230191554
    
    
More information about the hotspot-dev
mailing list