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)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: rnewman, Unassigned)

References

Details

(Whiteboard: [MemShrink])

Whiteboard: [MemShrink]
> 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.
> 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.