Bug 120040

Summary: Save three bytes per CStringBuffer object
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: Web Template FrameworkAssignee: Benjamin Poulain <benjamin>
Status: RESOLVED FIXED    
Severity: Normal CC: barraclough, benjamin, cmarcelo, commit-queue, gtk-ews, kling, koivisto, rego+ews, xan.lopez
Priority: P2 Keywords: BlinkMergeCandidate
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch darin: review+, gtk-ews: commit-queue-

Ryosuke Niwa
Reported 2013-08-19 17:27:12 PDT
Merge https://chromium.googlesource.com/chromium/blink/+/894ae8eafdb64912aefd8f9c809f4ccda84f3b89 sizeof(CStringBuffer) was rounded up to 8 on account of struct size and alignment rules. This is clearly not what was intended. Also tidy up includes.
Attachments
Patch (3.02 KB, patch)
2013-08-23 13:45 PDT, Benjamin Poulain
darin: review+
gtk-ews: commit-queue-
Benjamin Poulain
Comment 1 2013-08-23 13:45:48 PDT
Darin Adler
Comment 2 2013-08-23 13:47:40 PDT
Comment on attachment 209506 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=209506&action=review > Source/WTF/wtf/text/CString.h:49 > + char* mutableData() { return reinterpret_cast<char*>(this + 1); } Might need to use reinterpret_cast_ptr for the benefit of some ARM-based platforms.
kov's GTK+ EWS bot
Comment 3 2013-08-23 15:13:40 PDT
Benjamin Poulain
Comment 4 2013-08-24 21:38:24 PDT
Note You need to log in before you can comment on or make changes to this bug.