Changeset 184019 in webkit
- Timestamp:
- May 8, 2015, 3:54:24 PM (11 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
heap/MarkedBlock.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r184009 r184019 1 2015-05-08 Michael Saboff <msaboff@apple.com> 2 3 Creating a large MarkedBlock sometimes results in more than one cell in the block 4 https://bugs.webkit.org/show_bug.cgi?id=144815 5 6 Reviewed by Mark Lam. 7 8 Large MarkedBlocks should have one and only one cell. Changed the calculation of 9 m_endAtom for large blocks to use the location of the first cell + 1. This 10 assures that large blocks only have one cell. 11 12 * heap/MarkedBlock.cpp: 13 (JSC::MarkedBlock::MarkedBlock): 14 1 15 2015-05-08 Oliver Hunt <oliver@apple.com> 2 16 -
trunk/Source/JavaScriptCore/heap/MarkedBlock.cpp
r183769 r184019 48 48 : DoublyLinkedListNode<MarkedBlock>() 49 49 , m_atomsPerCell((cellSize + atomSize - 1) / atomSize) 50 , m_endAtom((allocator->cellSize() ? atomsPerBlock : capacity / atomSize) - m_atomsPerCell+ 1)50 , m_endAtom((allocator->cellSize() ? atomsPerBlock - m_atomsPerCell : firstAtom()) + 1) 51 51 , m_capacity(capacity) 52 52 , m_needsDestruction(needsDestruction)
Note:
See TracChangeset
for help on using the changeset viewer.