Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6ceceeb3ecb092dec058629ef0ce923e521b5869
      
https://github.com/WebKit/WebKit/commit/6ceceeb3ecb092dec058629ef0ce923e521b5869
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-08-24 (Mon, 24 Aug 2026)

  Changed paths:
    M Source/WebCore/Modules/geolocation/Geolocation.h

  Log Message:
  -----------
  Field ordering in Geolocation wastes 8 bytes of padding per instance
https://bugs.webkit.org/show_bug.cgi?id=322467
rdar://185752888

Reviewed by Chris Dumez.

Geolocation interleaves its one-byte members with pointer-sized ones, leaving
11 bytes of interior padding: 6 after m_hasBeenRequested/m_allowGeolocation,
and 5 after the three bools that follow m_authorizationToken.

Group AllowGeolocation and the four bools at the end of the class, and move
the pointer-sized members up with the rest. sizeof(Geolocation) goes from 328
to 320. Verified with -fdump-record-layouts; the saving holds on every 64-bit
ABI including MSVC, and 32-bit targets are unaffected.

No behaviour change.

* Source/WebCore/Modules/geolocation/Geolocation.h:

Canonical link: https://commits.webkit.org/319771@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to