Bug 146143 - [WK2] ConnectionUnix should use FastMalloc to allocate on-heap resources
Summary: [WK2] ConnectionUnix should use FastMalloc to allocate on-heap resources
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Zan Dobersek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-18 23:46 PDT by Zan Dobersek
Modified: 2015-06-22 05:07 PDT (History)
4 users (show)

See Also:


Attachments
Patch (4.45 KB, patch)
2015-06-19 00:00 PDT, Zan Dobersek
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zan Dobersek 2015-06-18 23:46:11 PDT
[WK2] ConnectionUnix should use FastMalloc to allocate on-heap resources
Comment 1 Zan Dobersek 2015-06-19 00:00:31 PDT
Created attachment 255180 [details]
Patch
Comment 2 WebKit Commit Bot 2015-06-19 00:03:43 PDT
Attachment 255180 [details] did not pass style-queue:


ERROR: Source/WebKit2/Platform/IPC/unix/ConnectionUnix.cpp:449:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Carlos Garcia Campos 2015-06-19 00:37:55 PDT
Comment on attachment 255180 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=255180&action=review

> Source/WebKit2/Platform/IPC/unix/ConnectionUnix.cpp:451
> +        size_t attachmentFDBufferLength = std::count_if(attachments.begin(), attachments.end(),
> +            [](const Attachment& attachment) {
> +                return attachment.fileDescriptor() != -1;
> +            });

Cool
Comment 4 Zan Dobersek 2015-06-22 05:07:34 PDT
Comment on attachment 255180 [details]
Patch

Clearing flags on attachment: 255180

Committed r185824: <http://trac.webkit.org/changeset/185824>
Comment 5 Zan Dobersek 2015-06-22 05:07:51 PDT
All reviewed patches have been landed.  Closing bug.