[Webkit-unassigned] [Bug 74696] New: sizeof(InlineBox) is 36 instead of 32 on Windows
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Dec 16 01:19:58 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=74696
Summary: sizeof(InlineBox) is 36 instead of 32 on Windows
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Layout and Rendering
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: rniwa at webkit.org
CC: darin at apple.com, koivisto at iki.fi, aroben at apple.com,
tony at chromium.org, ojan at chromium.org, kling at webkit.org
Same problem as RenderObject. This one isn't as severe as RenderObject but it's still 12.5% increase in the size :(
Unlike gcc and clang, MSVC pads each consecutive member variables of the same type
in bitfields. e.g. if you have:
sturct AB {
unsigned m_1 : 31;
bool m_2 : 1;
}
then MSVC pads m_1 and allocates sizeof(unsigned) * 2 for AB whereas gcc and clang
only allocate sizeof(unsigned) * 1 for AB.
As a result, RenderObject consumes 44 bytes instead of 32 bytes when compiled on Windows by cl.exe.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list