Changeset 143351 in webkit


Ignore:
Timestamp:
Feb 19, 2013 10:12:03 AM (11 years ago)
Author:
mhahnenberg@apple.com
Message:

WeakSet::removeAllocator leaks WeakBlocks
https://bugs.webkit.org/show_bug.cgi?id=110228

Reviewed by Geoffrey Garen.

We need to return the WeakBlock to the BlockAllocator after the call to WeakBlock::destroy.

  • heap/WeakSet.cpp:

(JSC::WeakSet::removeAllocator):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r143348 r143351  
     12013-02-19  Mark Hahnenberg  <mhahnenberg@apple.com>
     2
     3        WeakSet::removeAllocator leaks WeakBlocks
     4        https://bugs.webkit.org/show_bug.cgi?id=110228
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        We need to return the WeakBlock to the BlockAllocator after the call to WeakBlock::destroy.
     9
     10        * heap/WeakSet.cpp:
     11        (JSC::WeakSet::removeAllocator):
     12
    1132013-02-18  Geoffrey Garen  <ggaren@apple.com>
    214
  • trunk/Source/JavaScriptCore/heap/WeakSet.cpp

    r133812 r143351  
    8585{
    8686    m_blocks.remove(block);
    87     WeakBlock::destroy(block);
     87    heap()->blockAllocator().deallocate(WeakBlock::destroy(block));
    8888}
    8989
Note: See TracChangeset for help on using the changeset viewer.