pagemap: don't eagerly commit on LazyCommit PALs

This commit is contained in:
Nathaniel Wesley Filardo
2021-07-13 13:25:01 +01:00
committed by Nathaniel Wesley Filardo
parent 4b9ead8066
commit 39c2df0b56

View File

@@ -129,7 +129,7 @@ namespace snmalloc
}
// This means external pointer on Windows will be slow.
if constexpr (potentially_out_of_range)
if constexpr (potentially_out_of_range && !pal_supports<LazyCommit, PAL>)
{
commit_entry(&body[p >> SHIFT]);
}