pagemap: don't eagerly commit on LazyCommit PALs
This commit is contained in:
committed by
Nathaniel Wesley Filardo
parent
4b9ead8066
commit
39c2df0b56
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user