Arena in Malloc Feature

I use malloc_stats () to print statistics related to malloc, in which I find "Arena 0" for some programs and "Arena 0 and Arena 1" for some other programs.

What are these arenas?

+5
source share
4 answers

See link text . It looks like a heap is a collection of arenas ("basements") for handling memory allocation between multiple threads, which reduces the number of conflicts.

+2
source

glibc libc.so.x. , arenas. concurrency. , "" , , . , . malloc() , , (trylock). , . , , . , , . , . , , , , , , malloc() . malloc() .

+5

malloc "" , . , , , , . .

+2

All Articles