RFR: 8263464: NMT: assert in gtest os.release_multi_mappings_vm [v6]

Gerard Ziemski gziemski at openjdk.org
Fri May 19 16:58:01 UTC 2023


On Wed, 17 May 2023 18:00:18 GMT, Gerard Ziemski <gziemski at openjdk.org> wrote:

>> This fix allows NMT to account for released memory that was allocated in chunks, as long as the final pointer and size refer to total contiguous regions of the requested size.
>> 
>> The main idea here is to iterate over the "synthetic" region that was given to us and split it up into the underlaying existing regions, and then recursively handle them one at a time as we normally do.
>> 
>> Tested via `Mach5 tier1,tier2,tier3` and locally via `gtest:NMT*:os*`
>
> Gerard Ziemski has updated the pull request incrementally with one additional commit since the last revision:
> 
>   use size_t instead long

Thank you Johan for feedback!

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

PR Comment: https://git.openjdk.org/jdk/pull/13813#issuecomment-1554898057


More information about the hotspot-runtime-dev mailing list