You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FlsFree(mi_fls_key); // call thread-done on all threads (except the main thread) to prevent dangling callback pointer if statically linked with a DLL; Issue #208
536
536
#endif
537
537
538
-
#if (MI_DEBUG!=0) || !defined(MI_SHARED_LIB)
539
-
// free all memory if possible on process exit. This is not needed for a stand-alone process
540
-
// but should be done if mimalloc is statically linked into another shared library which
541
-
// is repeatedly loaded/unloaded, see issue #281.
542
-
mi_collect(true /* force */ );
538
+
#ifndefMI_SKIP_COLLECT_ON_EXIT
539
+
#if (MI_DEBUG!=0) || !defined(MI_SHARED_LIB)
540
+
// free all memory if possible on process exit. This is not needed for a stand-alone process
541
+
// but should be done if mimalloc is statically linked into another shared library which
542
+
// is repeatedly loaded/unloaded, see issue #281.
543
+
mi_collect(true /* force */ );
544
+
#endif
543
545
#endif
544
546
545
547
if (mi_option_is_enabled(mi_option_show_stats) ||mi_option_is_enabled(mi_option_verbose)) {
0 commit comments