Commit 24bcc863 authored by Richard Gobeille's avatar Richard Gobeille
Browse files

engine: enable mimalloc abandoned_page_reset option and call mi_collect()...

engine: enable mimalloc abandoned_page_reset option and call mi_collect() during enginePrepareLoadBoard()
parent e957ae57
......@@ -10573,7 +10573,7 @@ static FORCE_INLINE int32_t have_maptext(void)
static int enginePrepareLoadBoard(buildvfs_kfd fil, vec3_t *dapos, int16_t *daang, int16_t *dacursectnum)
{
initspritelists();
mi_collect(true);
DO_FREE_AND_NULL(reachablesectors);
Bmemset(show2dsector, 0, sizeof(show2dsector));
......
......@@ -80,7 +80,7 @@ static mi_option_desc_t options[_mi_option_last] =
{ 0, UNINIT, MI_OPTION(reserve_os_memory) },
{ 0, UNINIT, MI_OPTION(deprecated_segment_cache) }, // cache N segments per thread
{ 1, UNINIT, MI_OPTION(page_reset) }, // reset page memory on free
{ 0, UNINIT, MI_OPTION(abandoned_page_reset) },// reset free page memory when a thread terminates
{ 1, UNINIT, MI_OPTION(abandoned_page_reset) },// reset free page memory when a thread terminates
{ 0, UNINIT, MI_OPTION(segment_reset) }, // reset segment memory on free (needs eager commit)
#if defined(__NetBSD__)
{ 0, UNINIT, MI_OPTION(eager_commit_delay) }, // the first N segments per thread are not eagerly committed
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment