RFR: 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 11:29:52 GMT, Thomas Stuefe <stuefe 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
>
> Good. I would have named the flags "flag1" or "flag2" or "flag_rhs", "flag_lhs" or similar, but that is just nitpicking.
Thank you @tstuefe and @jdksjolen for your reviews.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18001#issuecomment-1966072219
More information about the hotspot-runtime-dev
mailing list