mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-20 05:59:32 +03:00
Set reset_decommits to zero for 32 bit os
This commit is contained in:
parent
c1f07a74a1
commit
64e722f754
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ static mi_option_desc_t options[_mi_option_last] =
|
||||||
{ 1, UNINIT, MI_OPTION(eager_commit) }, // commit on demand
|
{ 1, UNINIT, MI_OPTION(eager_commit) }, // commit on demand
|
||||||
#if defined(_WIN32) || (MI_INTPTR_SIZE <= 4) // and other OS's without overcommit?
|
#if defined(_WIN32) || (MI_INTPTR_SIZE <= 4) // and other OS's without overcommit?
|
||||||
{ 0, UNINIT, MI_OPTION(eager_region_commit) },
|
{ 0, UNINIT, MI_OPTION(eager_region_commit) },
|
||||||
{ 1, UNINIT, MI_OPTION(reset_decommits) }, // reset decommits memory
|
{ 0, UNINIT, MI_OPTION(reset_decommits) }, // reset decommits memory
|
||||||
#else
|
#else
|
||||||
{ 1, UNINIT, MI_OPTION(eager_region_commit) },
|
{ 1, UNINIT, MI_OPTION(eager_region_commit) },
|
||||||
{ 0, UNINIT, MI_OPTION(reset_decommits) }, // reset uses MADV_FREE/MADV_DONTNEED
|
{ 0, UNINIT, MI_OPTION(reset_decommits) }, // reset uses MADV_FREE/MADV_DONTNEED
|
||||||
|
|
Loading…
Add table
Reference in a new issue