mi-malloc  1.0
Runtime Options

Set runtime behavior. More...

Enumerations

enum  mi_option_t {
  mi_option_show_stats, mi_option_show_errors, mi_option_verbose, mi_option_secure,
  mi_option_eager_commit, mi_option_eager_region_commit, mi_option_large_os_pages, mi_option_page_reset,
  mi_option_cache_reset, mi_option_reset_decommits, mi_option_reset_discards, _mi_option_last
}
 Runtime options. More...
 

Functions

bool mi_option_enabled (mi_option_t option)
 
void mi_option_enable (mi_option_t option, bool enable)
 
void mi_option_enable_default (mi_option_t option, bool enable)
 
long mi_option_get (mi_option_t option)
 
void mi_option_set (mi_option_t option, long value)
 
void mi_option_set_default (mi_option_t option, long value)
 

Detailed Description

Set runtime behavior.

Enumeration Type Documentation

◆ mi_option_t

Runtime options.

Enumerator
mi_option_show_stats 

Print statistics to stderr when the program is done.

mi_option_show_errors 

Print error messages to stderr.

mi_option_verbose 

Print verbose messages to stderr.

mi_option_secure 

Experimental.

mi_option_eager_commit 

Eagerly commit segments (4MiB) (enabled by default).

mi_option_eager_region_commit 

Eagerly commit large (256MiB) memory regions (enabled by default except on Windows)

mi_option_large_os_pages 

Use large OS pages if possible.

mi_option_page_reset 

Reset page memory when it becomes free.

mi_option_cache_reset 

Reset segment memory when a segment is cached.

mi_option_reset_decommits 

Experimental.

mi_option_reset_discards 

Experimental.

_mi_option_last 

Function Documentation

◆ mi_option_enable()

void mi_option_enable ( mi_option_t  option,
bool  enable 
)

◆ mi_option_enable_default()

void mi_option_enable_default ( mi_option_t  option,
bool  enable 
)

◆ mi_option_enabled()

bool mi_option_enabled ( mi_option_t  option)

◆ mi_option_get()

long mi_option_get ( mi_option_t  option)

◆ mi_option_set()

void mi_option_set ( mi_option_t  option,
long  value 
)

◆ mi_option_set_default()

void mi_option_set_default ( mi_option_t  option,
long  value 
)