@@ -371,8 +371,11 @@ pub const mi_option_large_os_pages: mi_option_t = 6;
371
371
/// allocate just a little to take up space in the huge OS page area (which cannot be reset).
372
372
pub const mi_option_reserve_huge_os_pages: mi_option_t = 7 ;
373
373
374
+ /// TODO: update later
375
+ pub const mi_option_reserve_os_memory: mi_option_t = 8 ;
376
+
374
377
/// Option (experimental) specifying number of segments per thread to keep cached.
375
- pub const mi_option_segment_cache: mi_option_t = 8 ;
378
+ pub const mi_option_segment_cache: mi_option_t = 9 ;
376
379
377
380
/// Option (experimental) to reset page memory after mi_option_reset_delay milliseconds when it becomes free.
378
381
///
@@ -384,19 +387,19 @@ pub const mi_option_segment_cache: mi_option_t = 8;
384
387
/// off completely.
385
388
///
386
389
/// Default: 1 (true)
387
- pub const mi_option_page_reset: mi_option_t = 9 ;
390
+ pub const mi_option_page_reset: mi_option_t = 10 ;
388
391
389
392
/// Experimental
390
- pub const mi_option_abandoned_page_reset: mi_option_t = 10 ;
393
+ pub const mi_option_abandoned_page_reset: mi_option_t = 11 ;
391
394
392
395
/// Experimental
393
- pub const mi_option_segment_reset: mi_option_t = 11 ;
396
+ pub const mi_option_segment_reset: mi_option_t = 12 ;
394
397
395
398
/// Experimental
396
- pub const mi_option_eager_commit_delay: mi_option_t = 12 ;
399
+ pub const mi_option_eager_commit_delay: mi_option_t = 13 ;
397
400
398
401
/// Option (experimental) specifying delay in milli-seconds before resetting a page (100ms by default).
399
- pub const mi_option_reset_delay: mi_option_t = 13 ;
402
+ pub const mi_option_reset_delay: mi_option_t = 14 ;
400
403
401
404
/// Option (experimental) to pretend there are at most N NUMA nodes.
402
405
///
@@ -405,13 +408,16 @@ pub const mi_option_reset_delay: mi_option_t = 13;
405
408
/// actual NUMA nodes is fine and will only cause threads to potentially allocate more
406
409
/// memory across actual NUMA nodes (but this can happen in any case as NUMA local
407
410
/// allocation is always a best effort but not guaranteed).
408
- pub const mi_option_use_numa_nodes: mi_option_t = 14 ;
411
+ pub const mi_option_use_numa_nodes: mi_option_t = 15 ;
412
+
413
+ /// TODO: update later
414
+ pub const mi_option_limit_os_alloc: mi_option_t = 16 ;
409
415
410
416
/// Option (experimental) specifying OS tag to assign to mimalloc'd memory.
411
- pub const mi_option_os_tag: mi_option_t = 15 ;
417
+ pub const mi_option_os_tag: mi_option_t = 17 ;
412
418
413
419
/// Experimental
414
- pub const mi_option_max_errors: mi_option_t = 16 ;
420
+ pub const mi_option_max_errors: mi_option_t = 18 ;
415
421
416
422
extern "C" {
417
423
// Note: mi_option_{enable,disable} aren't exposed because they're redundant
0 commit comments