diff options
author | daan <daanl@outlook.com> | 2019-10-30 15:19:34 -0700 |
---|---|---|
committer | daan <daanl@outlook.com> | 2019-10-30 15:19:34 -0700 |
commit | b73beede344aa8c73bc0606162fece30b51fba46 (patch) | |
tree | c5f54e7e5868e0ab42aa2b93f621416e60868429 /src/options.c | |
parent | 9d4f57abf3993def9eed0bf2b07b66c144b6583c (diff) | |
parent | 4a4d74927ccd7c07e68d28ca372c6c30408ad92f (diff) |
merge from dev
Diffstat (limited to 'src/options.c')
-rw-r--r-- | src/options.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/options.c b/src/options.c index 9b0c87a..99e90c4 100644 --- a/src/options.c +++ b/src/options.c @@ -65,7 +65,7 @@ static mi_option_desc_t options[_mi_option_last] = { 0, UNINIT, MI_OPTION(cache_reset) }, { 0, UNINIT, MI_OPTION(reset_decommits) }, // note: cannot enable this if secure is on { 0, UNINIT, MI_OPTION(eager_commit_delay) }, // the first N segments per thread are not eagerly committed - { 0, UNINIT, MI_OPTION(segment_reset) }, // reset segment memory on free + { 0, UNINIT, MI_OPTION(segment_reset) }, // reset segment memory on free (needs eager commit) { 100, UNINIT, MI_OPTION(os_tag) } // only apple specific for now but might serve more or less related purpose }; @@ -290,7 +290,9 @@ mi_attr_noreturn void _mi_fatal_error(const char* fmt, ...) { va_start(args, fmt); mi_vfprintf(NULL, "mimalloc: fatal: ", fmt, args); va_end(args); - exit(99); + #if (MI_SECURE>=0) + abort(); + #endif } // -------------------------------------------------------- |