Changeset 152349 in webkit
- Timestamp:
- Jul 3, 2013 3:19:14 AM (11 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r152306 r152349 1 2013-07-03 Csaba Osztrogonác <ossy@webkit.org> 2 3 Fix cast-align warnings in FastMalloc.cpp 4 https://bugs.webkit.org/show_bug.cgi?id=117991 5 6 Reviewed by Mark Hahnenberg. 7 8 * wtf/FastMalloc.cpp: 9 1 10 2013-07-02 Geoffrey Garen <ggaren@apple.com> 2 11 -
trunk/Source/WTF/wtf/FastMalloc.cpp
r151020 r152349 587 587 #define POISON_DEALLOCATION_EXPLICIT(allocation, allocationSize, startPoison, endPoison) do { \ 588 588 ASSERT((allocationSize) >= 2 * sizeof(uint32_t)); \ 589 reinterpret_cast <uint32_t*>(allocation)[0] = 0xbadbeef9; \590 reinterpret_cast <uint32_t*>(allocation)[1] = 0xbadbeefb; \589 reinterpret_cast_ptr<uint32_t*>(allocation)[0] = 0xbadbeef9; \ 590 reinterpret_cast_ptr<uint32_t*>(allocation)[1] = 0xbadbeefb; \ 591 591 if ((allocationSize) < 4 * sizeof(uint32_t)) \ 592 592 break; \ 593 reinterpret_cast <uint32_t*>(allocation)[2] = (startPoison) ^ PTR_TO_UINT32(allocation); \594 reinterpret_cast <uint32_t*>(allocation)[END_POISON_INDEX(allocationSize)] = (endPoison) ^ PTR_TO_UINT32(allocation); \593 reinterpret_cast_ptr<uint32_t*>(allocation)[2] = (startPoison) ^ PTR_TO_UINT32(allocation); \ 594 reinterpret_cast_ptr<uint32_t*>(allocation)[END_POISON_INDEX(allocationSize)] = (endPoison) ^ PTR_TO_UINT32(allocation); \ 595 595 } while (false) 596 596
Note: See TracChangeset
for help on using the changeset viewer.