Integrated: 8324828: Avoid multiple search of reserved regions during splitting

Afshin Zafari azafari at openjdk.org
Tue Feb 27 09:01:59 UTC 2024


On Mon, 26 Feb 2024 07:55:26 GMT, Afshin Zafari <azafari at openjdk.org> wrote:

> To reserve two consequent memory regions, developers need to reserve a large region and then split it into two sub parts. To register memory type `(MEMFLAGS) mtXXX` for a region another call to NMT API is needed for every sub part. Since at every NMT call a linked list of reserved regions is searched, therefore for every split operation there are three NMT calls and search in the list.
> This PR adds the memory flags of the two sub regions to the split API to avoid extra search in the list.
> 
> tiers1-5 tests passed

This pull request has now been integrated.

Changeset: 7583419d
Author:    Afshin Zafari <azafari at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/7583419d88d7a61007951d5abdff4ac8e620c7d8
Stats:     13 lines in 4 files changed: 3 ins; 3 del; 7 mod

8324828: Avoid multiple search of reserved regions during splitting

Reviewed-by: stuefe, jsjolen

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

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


More information about the hotspot-runtime-dev mailing list