Changeset 167554 in webkit


Ignore:
Timestamp:
Apr 19, 2014 4:02:09 PM (10 years ago)
Author:
ggaren@apple.com
Message:

bmalloc: Improved alignment in LargeChunk
https://bugs.webkit.org/show_bug.cgi?id=131895

Reviewed by Andreas Kling.

  • bmalloc/Chunk.h:
  • bmalloc/LargeChunk.h: Align to vmPageSize just like Chunk does.

Technically, the previous alignment was harmless, but I would prefer,
dear reader, not to have to explain the interlocking set of
circumstances that made it so.

Location:
trunk/Source/bmalloc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/bmalloc/ChangeLog

    r167546 r167554  
     12014-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
    1142014-04-19  Geoffrey Garen  <ggaren@apple.com>
    215
  • trunk/Source/bmalloc/bmalloc/Chunk.h

    r167546 r167554  
    6363
    6464    // Align to vmPageSize to avoid sharing physical pages with metadata.
    65     // Otherwise, we'll confuse the scavenger into scavenging metadata.
    66      alignas(vmPageSize) char m_memory[];
     65    // Otherwise, we'll confuse the scavenger into trying to scavenge metadata.
     66    alignas(vmPageSize) char m_memory[];
    6767};
    6868
  • trunk/Source/bmalloc/bmalloc/LargeChunk.h

    r167546 r167554  
    6565
    6666    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[];
    6871};
    6972
Note: See TracChangeset for help on using the changeset viewer.