<div dir="ltr"><div><br></div><div><br></div><div>I am planning to assign each thread its own arena, as per my understanding this is akin to having a per thread heap since arena management is completely independent of each other.</div><div><br></div><div>How this is know to affect performance and memory overheads ? I am sure this would depend a lot on application allocation patterns but are any generic numbers/data from past ?</div><div><br></div><div>In cases where allocation done by thread T1 is freed by thread T2, how does jemalloc handles it ? Is there any basic garbage collection or remote-free ( request to free by remote thread which owns the allocation ) implementation ? I see that this could lead to memory build up. </div><div><br></div><div>Any inputs will be appreciated.</div><div><br></div>
</div>