|
|
|
|
|
by ape4
4291 days ago
|
|
Yes, we need a standard arena call(s). As you said, glibc already uses them internally. From the malloc(7) man page: In a multithreaded application in which threads
simultaneously allocate and free memory, there could be contention for these mutexes. To scalably handle memory allocation in multithreaded applications, glibc creates additional memory allocation arenas if mutex contention is detected. Each arena is a large region of memory that is internally allocated by the system
(using brk(2) or mmap(2)), and managed with its own mutexes. |
|