mallopt
可用于设置 double free 错误时,不让程序 coredump.
xxxxxxxxxxexport MALLOC_CHECK_=1
xxxxxxxxxx
export MALLOC_CHECK_=1
malloc_trim
可以让 OS 回收分配给 std::map 的内存(已经使用了 swap 和 clear 技巧)
source from ldd