Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-11116

Correct layout of __wt_page bringing modify field back within first 64 bytes

    • 3

      WT-8340 resized atomic_flags field to uint16_t but left it at an unaligned (byte) offset. This in addition with retaining unused results in unnecessary padding that pushes the modify field beyond the 64 byte (cache friendly) boundary documented in the code.

      /*     36      |       1 */    uint8_t type;
      /* XXX  1-byte hole      */
      /*     38      |       2 */    uint16_t flags_atomic;
      /*     40      |       1 */    uint8_t unused;
      /* XXX  7-byte hole      */
      /*     48      |       8 */    size_t memory_footprint;
      /*     56      |       8 */    const WT_PAGE_HEADER *dsk;
      /*     64      |       8 */    WT_PAGE_MODIFY *modify;
      

            Assignee:
            marc.butler@mongodb.com Marc Butler
            Reporter:
            marc.butler@mongodb.com Marc Butler
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: