Changeset 118269 in webkit for trunk/Source/JavaScriptCore/heap/WeakBlock.h
- Timestamp:
- May 23, 2012, 4:55:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/WeakBlock.h
r118238 r118269 31 31 #include "WeakImpl.h" 32 32 #include <wtf/DoublyLinkedList.h> 33 #include <wtf/PageAllocation.h>34 33 #include <wtf/StdLibExtras.h> 35 34 … … 43 42 public: 44 43 friend class WTF::DoublyLinkedListNode<WeakBlock>; 45 static const size_t blockSize = 4 * KB;44 static const size_t blockSize = 3 * KB; // 5% of MarkedBlock size 46 45 47 46 struct FreeCell { … … 65 64 66 65 void sweep(); 67 const SweepResult& sweepResult();68 66 SweepResult takeSweepResult(); 69 67 70 void visit LiveWeakImpls(HeapRootVisitor&);71 void visitDeadWeakImpls(HeapRootVisitor&);68 void visit(HeapRootVisitor&); 69 void reap(); 72 70 73 71 void lastChanceToFinalize(); … … 76 74 static FreeCell* asFreeCell(WeakImpl*); 77 75 78 WeakBlock( PageAllocation&);76 WeakBlock(); 79 77 WeakImpl* firstWeakImpl(); 80 78 void finalize(WeakImpl*); … … 83 81 void addToFreeList(FreeCell**, WeakImpl*); 84 82 85 PageAllocation m_allocation;86 83 WeakBlock* m_prev; 87 84 WeakBlock* m_next; … … 112 109 ASSERT(m_sweepResult.isNull()); 113 110 return tmp; 114 }115 116 inline const WeakBlock::SweepResult& WeakBlock::sweepResult()117 {118 return m_sweepResult;119 111 } 120 112
Note:
See TracChangeset
for help on using the changeset viewer.