DeprecatedStringData allocation size is 52 bytes due to struct packing
The comment in DeprecatedString.h says:
// Keep this struct to <= 46 bytes, that's what the system will allocate.
// Will be rounded up to a multiple of 4, so we're stuck at 44.
I have no idea how significant that comment is or whether it matters that DeprecatedStringData > 46 bytes on Windows. Perhaps it would be good to wrap the declaration of that class with #pragma pack(push, 1) ... #pragma pack(pop) just in case.
Created attachment 11874 [details]
I haven't determined if this actually is necessary, but here's a patch.
Comment on attachment 11874 [details]
I don't think we want to make this change without knowing what it accomplishes or being able to test it.
Building mysterious code on top of mysterious comments seems like a recipe for either (a) disaster or (b) a sequel to the Da Vinci Code.
I think this comment was specific to the size classes of the Mac OS X system malloc. But WebKit will no longer use that, even on Mac OS X, so I think the best thing would be to remove the comment.
My hope was that one of you guys would know what this comment was all about and be able to decide whether you want the same for windows or if the comment is just bogus. Sounds like the latter, so I'll rev the patch accordingly.