Properly cleanup thread-local arenas
Categories
(Core :: Memory Allocator, enhancement, P3)
Tracking
()
People
(Reporter: glandium, Unassigned)
References
(Blocks 2 open bugs)
Details
Updated•7 years ago
|
Reporter | ||
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Can someone educate me the status of this bug?
I used moz_create_arena
in bug 1377999, and I'd like know whether this is a blocker of my patch.
If I can't manually call moz_dispose_arena
at the moment, will it be disposed sometime later?
Thanks
Comment 2•5 years ago
|
||
(In reply to Sean Feng [:sefeng] from comment #1)
Can someone educate me the status of this bug?
We think bug 1596300 will help out here, it's currently be worked on but is more of proof-of-concept right now.
I used
moz_create_arena
in bug 1377999, and I'd like know whether this is a blocker of my patch.
It really depends on how many you expect to create and whether or not you can reuse them. Mike probably has a better idea of the overhead of leaving them around.
If I can't manually call
moz_dispose_arena
at the moment, will it be disposed sometime later?
My understanding is they'll stick around until process shutdown. If these are limited to content processes this might not be a huge issue once fission is enabled.
Reporter | ||
Comment 3•5 years ago
|
||
What Eric said is accurate. At the moment, using moz_create_arena is not recommended except if the arena is meant to last until the end of the process. So for example, creating an arena for all DOM nodes in a process is fine, but creating an arena for all DOM nodes per page is not (with multiple pages per process).
Updated•2 years ago
|
Description
•