Title: [187572] trunk/Source/WebKit2
Revision
187572
Author
[email protected]
Date
2015-07-29 19:34:07 -0700 (Wed, 29 Jul 2015)

Log Message

[WK2] Use FastMalloc in IPC::MessageDecoder
https://bugs.webkit.org/show_bug.cgi?id=147425

Reviewed by Sam Weinig.

Use FastMalloc in IPC::MessageDecoder instead of system malloc, for
performance reasons and consistency.

* Platform/IPC/ArgumentDecoder.cpp:
(IPC::ArgumentDecoder::~ArgumentDecoder):
(IPC::ArgumentDecoder::initialize):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (187571 => 187572)


--- trunk/Source/WebKit2/ChangeLog	2015-07-30 02:00:31 UTC (rev 187571)
+++ trunk/Source/WebKit2/ChangeLog	2015-07-30 02:34:07 UTC (rev 187572)
@@ -1,3 +1,17 @@
+2015-07-29  Chris Dumez  <[email protected]>
+
+        [WK2] Use FastMalloc in IPC::MessageDecoder
+        https://bugs.webkit.org/show_bug.cgi?id=147425
+
+        Reviewed by Sam Weinig.
+
+        Use FastMalloc in IPC::MessageDecoder instead of system malloc, for
+        performance reasons and consistency.
+
+        * Platform/IPC/ArgumentDecoder.cpp:
+        (IPC::ArgumentDecoder::~ArgumentDecoder):
+        (IPC::ArgumentDecoder::initialize):
+
 2015-07-29  Enrica Casucci  <[email protected]>
 
         Preview should not start if touch handler prevents default.

Modified: trunk/Source/WebKit2/Platform/IPC/ArgumentDecoder.cpp (187571 => 187572)


--- trunk/Source/WebKit2/Platform/IPC/ArgumentDecoder.cpp	2015-07-30 02:00:31 UTC (rev 187571)
+++ trunk/Source/WebKit2/Platform/IPC/ArgumentDecoder.cpp	2015-07-30 02:34:07 UTC (rev 187572)
@@ -46,7 +46,7 @@
 ArgumentDecoder::~ArgumentDecoder()
 {
     ASSERT(m_buffer);
-    free(m_buffer);
+    fastFree(m_buffer);
     // FIXME: We need to dispose of the mach ports in cases of failure.
 }
 
@@ -61,7 +61,7 @@
 
 void ArgumentDecoder::initialize(const uint8_t* buffer, size_t bufferSize)
 {
-    m_buffer = static_cast<uint8_t*>(malloc(bufferSize));
+    m_buffer = static_cast<uint8_t*>(fastMalloc(bufferSize));
 
     ASSERT(!(reinterpret_cast<uintptr_t>(m_buffer) % alignof(uint64_t)));
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to