Use FlatPageMap on OS with lazy commit

If the operating system will allocate private pages on demand for the
pagemap then use the FlatPageMap by default as it generates better code
for deallocation.
This commit is contained in:
Matthew Parkinson
2019-07-09 10:41:58 +01:00
parent 1e3f95152e
commit e240dd279a
5 changed files with 16 additions and 6 deletions

View File

@@ -18,7 +18,7 @@ namespace snmalloc
* Bitmap of PalFeatures flags indicating the optional features that this
* PAL supports.
*/
static constexpr uint64_t pal_features = 0;
static constexpr uint64_t pal_features = LazyCommit;
static void error(const char* const str)
{
puts(str);