Integrated: 8330076: NMT: add/make a mandatory MEMFLAGS argument to family of os::reserve/commit/uncommit memory API

Afshin Zafari azafari at openjdk.org
Thu May 2 07:23:08 UTC 2024


On Thu, 11 Apr 2024 15:54:38 GMT, Afshin Zafari <azafari at openjdk.org> wrote:

> `MEMFLAGS flag` is used to hold/show the type of the memory regions in NMT. Each call of NMT API requires a search through the list of memory regions.
> The Hotspot code reserves/commits/uncommits memory regions and later calls explicitly NMT API with a specific memory type (e.g., `mtGC`, `mtJavaHeap`) for that region.  Therefore, there are two search in the list of regions per reserve/commit/uncommit operations, one for the operation and another for setting the type of the region.  
> When the memory type is passed in during reserve/commit/uncommit operations, NMT can use it and avoid the extra search for setting the memory type.
> 
> Tests: tiers1-5 passed on linux-x64, macosx-aarch64 and windows-x64 for debug and non-debug builds.

This pull request has now been integrated.

Changeset: 4036d7d8
Author:    Afshin Zafari <azafari at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/4036d7d8246da0550adf8543848606c777da20a1
Stats:     449 lines in 62 files changed: 29 ins; 51 del; 369 mod

8330076: NMT: add/make a mandatory MEMFLAGS argument to family of os::reserve/commit/uncommit memory API

Reviewed-by: stefank, jsjolen, stuefe

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

PR: https://git.openjdk.org/jdk/pull/18745


More information about the shenandoah-dev mailing list