有时候会遇到下面的log:
他是什么意思呢?需要做什么处理?
What actually 'arena' is?
You can read about it here or here. In a few words, it is a concept for the memory management in a multithreaded application. Memory is divided into arenas (regions, areas). Each allocation arena has its own lock, so multiple threads don't interfere with each other when they allocate memory at one time.
Why did I see this message? Am I the Chosen One?
No, I don't think so. =) I'm not really sure, but it seems just like an internal warning from the JIT that it has allocated a large number of memory blocks.
Internally this arena-based malloc is built upon a linked list. I.e. each arena is implemented as a linked list of large blocks of memory. The current block (currentArena
) maintains a pointer to the next free position in the block (&(currentArena->ptr[currentArena->bytesAllocated])
), and if the block is filled (see <0>), a new one is allocated (see <1>) and added to the list (see <2>).
原文:
http://stackoverflow.com/questions/21733398/total-arena-pages-for-jit-what-does-it-mean