mallocng.3x (2012 03)
m
mallocng(3X)
Itanium(R)-based Systems Only
mallocng(3X)
_MALLOCNG_GLOBAL_OPTS
In certain types of multi-threaded applications, wherein one thread allocates memory, passes the pointer
to another thread to free the memory and the allocating thread never calls any of the
malloc() family
of APIs again, the
mallocng allocator does not mark the memory to be freed. In order to make the
mallocng allocator mark the memory to be freed in such conditions, set the environment variable
_MALLOCNG_GLOBAL_OPTS
to 1, as follows:
$ export _MALLOCNG_GLOBAL_OPTS=1
By default, the environment variable is set to 0.
SEE ALSO
mmap(2), brk(2), errno(2), malloc(3C), thread_safety(5).
2 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: March 2012