Changeset 92788 in webkit for trunk/Source/JavaScriptCore/heap/HandleHeap.h
- Timestamp:
- Aug 10, 2011, 12:52:27 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/HandleHeap.h
r89077 r92788 114 114 void grow(); 115 115 116 #if !ASSERT_DISABLED116 #if ENABLE(GC_VALIDATION) || !ASSERT_DISABLED 117 117 bool isValidWeakNode(Node*); 118 bool isLiveNode(Node*); 118 119 #endif 119 120 … … 150 151 inline HandleSlot HandleHeap::allocate() 151 152 { 153 // Forbid assignment to handles during the finalization phase, since it would violate many GC invariants. 154 // File a bug with stack trace if you hit this. 155 if (m_nextToFinalize) 156 CRASH(); 152 157 if (m_freeList.isEmpty()) 153 158 grow(); … … 182 187 inline void HandleHeap::makeWeak(HandleSlot handle, WeakHandleOwner* weakOwner, void* context) 183 188 { 189 // Forbid assignment to handles during the finalization phase, since it would violate many GC invariants. 190 // File a bug with stack trace if you hit this. 191 if (m_nextToFinalize) 192 CRASH(); 184 193 Node* node = toNode(handle); 185 194 node->makeWeak(weakOwner, context);
Note:
See TracChangeset
for help on using the changeset viewer.