Closed
Bug 834998
Opened 11 years ago
Closed 11 years ago
Ensure that CCW tables shrink when tracked objects go away
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: rnewman, Unassigned)
References
Details
(Whiteboard: [MemShrink])
Updated•11 years ago
|
Whiteboard: [MemShrink]
Comment 1•11 years ago
|
||
> Hmm... the wrapper objects will be GC'd once they're no longer needed, but it's
> possible that the CCW tables won't be shrunk back down if the number of objects
> tracked by them drops.
I think this happens automatically: Cross compartment wrappers are removed from the map using WrapperMap::Enum, which calls compactIfUnderloaded() in its destructor if any entries have been removed.
Comment 2•11 years ago
|
||
> Cross compartment wrappers are removed
> from the map using WrapperMap::Enum, which calls compactIfUnderloaded() in
> its destructor if any entries have been removed.
Great! Thanks, Jon.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•