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
{{ message }}
Repository navigation
Commit 503072c
Browse filesBrowse the repository at this point in the historyBrowse files
// Abandon all theap pages, preserving live blocks and the theap for reuse. The owner must be the current thread or quiescent outside mimalloc (excluding concurrent heap/theap deletion).
mi_option_guarded_sample_rate, // guard an object in the min/max range about every N requested bytes (=0)
498
504
mi_option_guarded_sample_seed, // can be set to allow for a (more) deterministic re-execution when a guard page is triggered (=0)
499
505
mi_option_generic_collect, // collect theaps every N (=10000) generic allocation calls
500
-
mi_option_page_reclaim_on_free, // heap-creation default for reclaim on free: -1 disallow, 0 originating theap only, 1 allow across theaps
506
+
mi_option_page_reclaim_on_free, // heap-creation default for reclaim on free: -1 disallow, 0 originating theap only (default), 1 allow across theaps
501
507
mi_option_page_full_retain, // retain N full (small) pages per size class (=2)
502
508
mi_option_page_max_candidates, // max candidate pages to consider for allocation (=4)
503
509
mi_option_max_vabits, // max user space virtual address bits to consider (=48)
@@ -514,7 +520,7 @@ typedef enum mi_option_e {
514
520
mi_option_profile_inuse_interval, // number of in-use bytes grown between automatic snapshots of the heap profiler (=0, disabled)
515
521
mi_option_profile_time_interval, // number of seconds between automatic snapshots of the heap profiler (=0, disabled)
516
522
mi_option_profile_sample_rate, // sample rate (in bytes) for heap profiler (=512 KiB)
517
-
mi_option_stats_merge_threshold, // on a page stats update, merge theap stats into the parent heap if N bytes were freed/allocated; 0 disables (=512 KiB)
523
+
mi_option_stats_merge_threshold, // on a page stats update, merge theap stats into the parent heap if N bytes were freed/allocated; 0 disables (=4 MiB)
518
524
mi_option_arena_purge_immediate_size, // ranges above this size are purged immediately
519
525
_mi_option_last,
520
526
// legacy option names
@@ -546,8 +552,6 @@ mi_decl_export void mi_option_set_default(mi_option_t option, long value);
546
552
// note: we use `mi_cfree` as "checked free" and it checks if the pointer is in our theap before free-ing.
0 commit comments