Title: [150676] trunk/Source/WTF
Revision
150676
Author
benja...@webkit.org
Date
2013-05-24 18:12:22 -0700 (Fri, 24 May 2013)

Log Message

Inline TCMalloc_Central_FreeList's RemoveRange and FetchFromSpansSafe
https://bugs.webkit.org/show_bug.cgi?id=116700

Patch by Benjamin Poulain <bpoul...@apple.com> on 2013-05-24
Reviewed by Darin Adler.

The two functions only have one call site each.

* wtf/FastMalloc.cpp:
(WTF::TCMalloc_Central_FreeList::RemoveRange):
(WTF::TCMalloc_Central_FreeList::FetchFromSpansSafe):

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (150675 => 150676)


--- trunk/Source/WTF/ChangeLog	2013-05-25 01:02:48 UTC (rev 150675)
+++ trunk/Source/WTF/ChangeLog	2013-05-25 01:12:22 UTC (rev 150676)
@@ -1,3 +1,16 @@
+2013-05-24  Benjamin Poulain  <bpoul...@apple.com>
+
+        Inline TCMalloc_Central_FreeList's RemoveRange and FetchFromSpansSafe
+        https://bugs.webkit.org/show_bug.cgi?id=116700
+
+        Reviewed by Darin Adler.
+
+        The two functions only have one call site each.
+
+        * wtf/FastMalloc.cpp:
+        (WTF::TCMalloc_Central_FreeList::RemoveRange):
+        (WTF::TCMalloc_Central_FreeList::FetchFromSpansSafe):
+
 2013-05-24  Filip Pizlo  <fpi...@apple.com>
 
         We broke !(0/0)

Modified: trunk/Source/WTF/wtf/FastMalloc.cpp (150675 => 150676)


--- trunk/Source/WTF/wtf/FastMalloc.cpp	2013-05-25 01:02:48 UTC (rev 150675)
+++ trunk/Source/WTF/wtf/FastMalloc.cpp	2013-05-25 01:12:22 UTC (rev 150676)
@@ -3051,7 +3051,7 @@
   ReleaseListToSpans(start);
 }
 
-void TCMalloc_Central_FreeList::RemoveRange(HardenedSLL* start, HardenedSLL* end, int *N) {
+ALWAYS_INLINE void TCMalloc_Central_FreeList::RemoveRange(HardenedSLL* start, HardenedSLL* end, int *N) {
   int num = *N;
   ASSERT(num > 0);
 
@@ -3089,7 +3089,7 @@
 }
 
 
-HardenedSLL TCMalloc_Central_FreeList::FetchFromSpansSafe() {
+ALWAYS_INLINE HardenedSLL TCMalloc_Central_FreeList::FetchFromSpansSafe() {
   HardenedSLL t = FetchFromSpans();
   if (!t) {
     Populate();
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to