RFR: 8366241: NMT: Consolidate [Virtual/Committed/Reserved]Regions into one structure [v4]

Afshin Zafari azafari at openjdk.org
Tue Sep 30 09:03:15 UTC 2025


On Mon, 29 Sep 2025 16:31:31 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:

>> Afshin Zafari has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains seven commits:
>> 
>>  - Merge remote-tracking branch 'origin/master' into _8366241_nmt_consolidate_structures
>>  - Merge remote-tracking branch 'origin/master' into _8366241_nmt_consolidate_structures
>>  - master merge fix
>>  - Merge remote-tracking branch 'origin/master' into _8366241_nmt_consolidate_structures
>>  - after merge with 8366363.
>>  - Merge remote-tracking branch 'origin/master' into _8366241_nmt_consolidate_structures
>>  - 8366241: NMT: Consolidate [Virtual/Committed/Reserved]Regions into one structure
>
> src/hotspot/share/nmt/virtualMemoryTracker.hpp line 265:
> 
>> 263:   inline bool equals(const VirtualMemoryRegion& rgn) const {
>> 264:     return compare(rgn) == 0;
>> 265:   }
> 
> Is this used?

Yes, in `memReporter.cpp:438`, to find if a reserved region is completely committed.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27137#discussion_r2390423788


More information about the hotspot-runtime-dev mailing list