Lets you specify an alternate algorithm for malloc().
None
IA-32 architecture, Intel® 64 architecture
Linux and Mac OS X: | -opt-malloc-options=n |
Windows: | None |
n | Specifies the algorithm to use for malloc(). Possible values are: | |
0 | Tells the compiler to use the default algorithm for malloc(). This is the default. | |
1 | Causes the following adjustments to the malloc() algorithm: M_MMAP_MAX=2 and M_TRIM_THRESHOLD=0x10000000. | |
2 | Causes the following adjustments to the malloc() algorithm: M_MMAP_MAX=2 and M_TRIM_THRESHOLD=0x40000000. | |
3 | Causes the following adjustments to the malloc() algorithm: M_MMAP_MAX=0 and M_TRIM_THRESHOLD=-1. |
-opt-malloc-options=0 | The compiler uses the default algorithm when malloc() is called. No call is made to mallopt(). |
This option lets you specify an alternate algorithm for malloc().
If you specify a non-zero value for n, it causes alternate configuration parameters to be set for how malloc() allocates and frees memory. It tells the compiler to insert calls to mallopt() to adjust these parameters to malloc() for dynamic memory allocation. This may improve speed.
None
malloc(3) man page