Title: [246744] trunk/Source/bmalloc
Revision
246744
Author
[email protected]
Date
2019-06-24 11:49:09 -0700 (Mon, 24 Jun 2019)

Log Message

[bmalloc] IsoHeap shared tier threshold is small
https://bugs.webkit.org/show_bug.cgi?id=199145

Reviewed by Saam Barati.

We accidentally picked 3 for the shared tier threshold. While this is OK because the important part of IsoHeap shared tier is putting
small # of shared objects before tiering up to the page-based allocation, increasing this threshold can potentially improve memory footprint.
This patch increases this threshold from 3 to 8. A/B test says that this offers stable 0.25% improvement in PLUM2.

* bmalloc/IsoHeapImpl.h:

Modified Paths

Diff

Modified: trunk/Source/bmalloc/ChangeLog (246743 => 246744)


--- trunk/Source/bmalloc/ChangeLog	2019-06-24 18:20:43 UTC (rev 246743)
+++ trunk/Source/bmalloc/ChangeLog	2019-06-24 18:49:09 UTC (rev 246744)
@@ -1,3 +1,16 @@
+2019-06-24  Yusuke Suzuki  <[email protected]>
+
+        [bmalloc] IsoHeap shared tier threshold is small
+        https://bugs.webkit.org/show_bug.cgi?id=199145
+
+        Reviewed by Saam Barati.
+
+        We accidentally picked 3 for the shared tier threshold. While this is OK because the important part of IsoHeap shared tier is putting
+        small # of shared objects before tiering up to the page-based allocation, increasing this threshold can potentially improve memory footprint.
+        This patch increases this threshold from 3 to 8. A/B test says that this offers stable 0.25% improvement in PLUM2.
+
+        * bmalloc/IsoHeapImpl.h:
+
 2019-06-21  Yusuke Suzuki  <[email protected]>
 
         [bmalloc] IsoTLS Layout extension initializes one IsoTLSEntry twice

Modified: trunk/Source/bmalloc/bmalloc/IsoHeapImpl.h (246743 => 246744)


--- trunk/Source/bmalloc/bmalloc/IsoHeapImpl.h	2019-06-24 18:20:43 UTC (rev 246743)
+++ trunk/Source/bmalloc/bmalloc/IsoHeapImpl.h	2019-06-24 18:49:09 UTC (rev 246744)
@@ -39,7 +39,7 @@
     MAKE_BMALLOCED;
 public:
     static constexpr unsigned maxAllocationFromShared = 8;
-    static constexpr unsigned maxAllocationFromSharedMask = maxAllocationFromShared - 1;
+    static constexpr unsigned maxAllocationFromSharedMask = (1U << maxAllocationFromShared) - 1U;
     static_assert(maxAllocationFromShared <= bmalloc::alignment, "");
     static_assert(isPowerOfTwo(maxAllocationFromShared), "");
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to