Changeset 115391 in webkit for trunk/Source/JavaScriptCore/heap/WeakSet.cpp
- Timestamp:
- Apr 26, 2012, 5:51:47 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/WeakSet.cpp
r115092 r115391 96 96 return allocator; 97 97 98 // FIXME: This reporting of the amount allocated isn't quite accurate and99 // probably should be reworked eventually.100 m_heap->didAllocate(WeakBlock::blockSize);101 if (m_heap->shouldCollect()) {102 m_heap->collect(Heap::DoNotSweep);103 104 if (WeakBlock::FreeCell* allocator = tryFindAllocator())105 return allocator;106 }107 108 98 return addAllocator(); 109 99 } … … 127 117 { 128 118 WeakBlock* block = WeakBlock::create(); 119 m_heap->didAllocate(WeakBlock::blockSize); 129 120 m_blocks.append(block); 130 121 WeakBlock::SweepResult sweepResult = block->takeSweepResult();
Note:
See TracChangeset
for help on using the changeset viewer.