啥时候glibc的allocato自己call arena_get2 --》 mmap?
下面这个thread的stack显示出不属于任何applicaiton thread,应该是glibc的
allocator发现master arena没法用了,只好再建一个新的heap。
(gdb) c
Continuing.
[Switching to Thread 0xb53b4b90 (LWP 8084)]
Breakpoint 1, 0xb7f68b10 in mmap () from /lib/libc.so.6
(gdb) where
#0 0xb7f68b10 in mmap () from /lib/libc.so.6
#1 0xb7efff16 in new_heap () from /lib/libc.so.6
#2 0xb7f000b1 in _int_new_arena () from /lib/libc.so.6
#3 0xb4a00010 in ?? ()
#4 0xb4a00010 in ?? ()
#5 0xb53b4118 in ?? ()
#6 0xb7f0040a in arena_get2 () from /lib/libc.so.6
#7 0x00000000 in ?? ()
(gdb) c
哪位大牛了解在哪些条件下会出现这种情况?
这种arena又是啥时候会被释放?