Changeset 235499 in webkit
- Timestamp:
- Aug 30, 2018 7:01:49 AM (6 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r235495 r235499 1 2018-08-30 Yoshiaki Jitsukawa <yoshiaki.jitsukawa@sony.com> 2 3 [ConnectionUnix] Shrink sizeof AttachmentInfo by reordering members 4 https://bugs.webkit.org/show_bug.cgi?id=189149 5 6 Reviewed by Michael Catanzaro. 7 8 Reorder members to shrink the size of AttachmentInfo so that 9 we can attach more attachments. 10 11 * Platform/IPC/unix/ConnectionUnix.cpp: 12 1 13 2018-08-29 Chris Dumez <cdumez@apple.com> 2 14 -
trunk/Source/WebKit/Platform/IPC/unix/ConnectionUnix.cpp
r229309 r235499 60 60 61 61 static const size_t messageMaxSize = 4096; 62 static const size_t attachmentMaxAmount = 25 5;62 static const size_t attachmentMaxAmount = 254; 63 63 64 64 class AttachmentInfo { … … 87 87 private: 88 88 Attachment::Type m_type { Attachment::Uninitialized }; 89 bool m_isNull { false }; 89 90 size_t m_size { 0 }; 90 bool m_isNull { false };91 91 }; 92 93 static_assert(sizeof(MessageInfo) + sizeof(AttachmentInfo) * attachmentMaxAmount <= messageMaxSize, "messageMaxSize is too small."); 92 94 93 95 void Connection::platformInitialize(Identifier identifier)
Note: See TracChangeset
for help on using the changeset viewer.