mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
Experimental improvements to reduce memory usage
1. Prefer to use more loaded pages when allocating 2. Add an option to restrict unbounded heap growth and allow the excessive memory allocations to be re-used by other threads
This commit is contained in:
parent
8c532c32c3
commit
b604099334
6 changed files with 208 additions and 8 deletions
|
@ -348,6 +348,7 @@ typedef enum mi_option_e {
|
|||
mi_option_abandoned_reclaim_on_free, // allow to reclaim an abandoned segment on a free (=1)
|
||||
mi_option_disallow_arena_alloc, // 1 = do not use arena's for allocation (except if using specific arena id's)
|
||||
mi_option_retry_on_oom, // retry on out-of-memory for N milli seconds (=400), set to 0 to disable retries. (only on windows)
|
||||
mi_option_max_segments_per_heap, // max number of segments that heap can own
|
||||
_mi_option_last,
|
||||
// legacy option names
|
||||
mi_option_large_os_pages = mi_option_allow_large_os_pages,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue