Changeset 143354 in webkit
- Timestamp:
- Feb 19, 2013 10:40:03 AM (11 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r143351 r143354 1 2013-02-19 Mark Hahnenberg <mhahnenberg@apple.com> 2 3 HeapBlock::destroy should issue warning if result is unused 4 https://bugs.webkit.org/show_bug.cgi?id=110233 5 6 Reviewed by Oliver Hunt. 7 8 To enforce the fact that we need to return blocks to the BlockAllocator after calling destroy, 9 we should add WARN_UNUSED_RETURN to HeapBlock::destroy and any other destroy functions in its subclasses. 10 11 * heap/HeapBlock.h: 12 1 13 2013-02-19 Mark Hahnenberg <mhahnenberg@apple.com> 2 14 -
trunk/Source/JavaScriptCore/heap/HeapBlock.h
r131321 r143354 46 46 friend CLASS_IF_GCC DoublyLinkedListNode<T>; 47 47 public: 48 static HeapBlock* destroy(HeapBlock* block) 48 static HeapBlock* destroy(HeapBlock* block) WARN_UNUSED_RETURN 49 49 { 50 50 static_cast<T*>(block)->~T();
Note: See TracChangeset
for help on using the changeset viewer.