Bug 147425

Summary: [WK2] Use FastMalloc in IPC::MessageDecoder
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, commit-queue, ggaren, kling, sam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Chris Dumez 2015-07-29 16:32:04 PDT
Use FastMalloc in IPC::MessageDecoder instead of system malloc, for performance reasons and consistency.
Comment 1 Chris Dumez 2015-07-29 16:49:18 PDT
Created attachment 257783 [details]
Patch
Comment 2 WebKit Commit Bot 2015-07-29 19:35:36 PDT
Comment on attachment 257783 [details]
Patch

Clearing flags on attachment: 257783

Committed r187572: <http://trac.webkit.org/changeset/187572>
Comment 3 WebKit Commit Bot 2015-07-29 19:35:42 PDT
All reviewed patches have been landed.  Closing bug.
Comment 4 Anders Carlsson 2015-07-30 10:29:05 PDT
It's using malloc/free for a reason. See https://bugs.webkit.org/show_bug.cgi?id=101130
Comment 5 Chris Dumez 2015-07-30 10:37:26 PDT
(In reply to comment #4)
> It's using malloc/free for a reason. See
> https://bugs.webkit.org/show_bug.cgi?id=101130

I see. This bug seems rather old (we were still using TCMalloc) and the fix was speculative. There is no reason that I know of we shouldn't be able to use fastMalloc here. I would propose we give this a shot and revert if we start seeing crashes in this area (unless you know of a reason why we definitely should not use fastMalloc here).