Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4b3bf5aaf43d212ba2aa4a91fbb3a36f6effb4c3
https://github.com/WebKit/WebKit/commit/4b3bf5aaf43d212ba2aa4a91fbb3a36f6effb4c3
Author: Ahmad Saleem <[email protected]>
Date: 2026-06-30 (Tue, 30 Jun 2026)
Changed paths:
M Source/WebCore/html/parser/HTMLEntityTable.h
M Source/WebCore/html/parser/create-html-entity-table
Log Message:
-----------
Padding bits defeat intended HTMLEntityTableEntry size optimization
https://bugs.webkit.org/show_bug.cgi?id=295171
rdar://155138028
Reviewed by Chris Dumez.
Reordered the bitfields so they pack into two 32-bit units (21+5+1, then
14+16) instead of straddling unit boundaries, bringing the struct down from
12 bytes to the intended 8. Updated create-html-entity-table to emit the
members in the new order, and added a static_assert to lock in the size.
Thanks to Darin for initial idea on how to map these.
* Source/WebCore/html/parser/HTMLEntityTable.h:
* Source/WebCore/html/parser/create-html-entity-table:
Canonical link: https://commits.webkit.org/316220@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications