Changeset 167554 in webkit
- Timestamp:
- Apr 19, 2014 4:02:09 PM (10 years ago)
- Location:
- trunk/Source/bmalloc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/bmalloc/ChangeLog
r167546 r167554 1 2014-04-19 Geoffrey Garen <ggaren@apple.com> 2 3 bmalloc: Improved alignment in LargeChunk 4 https://bugs.webkit.org/show_bug.cgi?id=131895 5 6 Reviewed by Andreas Kling. 7 8 * bmalloc/Chunk.h: 9 * bmalloc/LargeChunk.h: Align to vmPageSize just like Chunk does. 10 Technically, the previous alignment was harmless, but I would prefer, 11 dear reader, not to have to explain the interlocking set of 12 circumstances that made it so. 13 1 14 2014-04-19 Geoffrey Garen <ggaren@apple.com> 2 15 -
trunk/Source/bmalloc/bmalloc/Chunk.h
r167546 r167554 63 63 64 64 // Align to vmPageSize to avoid sharing physical pages with metadata. 65 // Otherwise, we'll confuse the scavenger into scavengingmetadata.66 65 // Otherwise, we'll confuse the scavenger into trying to scavenge metadata. 66 alignas(vmPageSize) char m_memory[]; 67 67 }; 68 68 -
trunk/Source/bmalloc/bmalloc/LargeChunk.h
r167546 r167554 65 65 66 66 BoundaryTag m_boundaryTags[boundaryTagCount]; 67 alignas(largeAlignment) char m_memory[]; 67 68 // Align to vmPageSize to avoid sharing physical pages with metadata. 69 // Otherwise, we'll confuse the scavenger into trying to scavenge metadata. 70 alignas(vmPageSize) char m_memory[]; 68 71 }; 69 72
Note: See TracChangeset
for help on using the changeset viewer.