NEW 74696
sizeof(InlineBox) is 36 instead of 32 on Windows
https://bugs.webkit.org/show_bug.cgi?id=74696
Summary sizeof(InlineBox) is 36 instead of 32 on Windows
Ryosuke Niwa
Reported 2011-12-16 01:19:58 PST
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.
Attachments
Note You need to log in before you can comment on or make changes to this bug.