Title: [247409] trunk/Source/bmalloc
Revision
247409
Author
[email protected]
Date
2019-07-12 17:22:54 -0700 (Fri, 12 Jul 2019)

Log Message

Increase JSValue cage size on iOS and reduce the max slide
https://bugs.webkit.org/show_bug.cgi?id=199765

Reviewed by Saam Barati.

Since the WebContent jetsam limit has changed we sometimes run out
of JSValue cage VA space causing us to run out of memory for
arrays. This change makes the JSValue cage a more reasonable upper
limit for what should be possible without jetsamming.

The worst case memory mapping with this configuration is has not
changed from before. Under both configurations we could map 36GB
with a temporary mapping of 38GB (to align the VA to 2GB).

* bmalloc/Gigacage.h:

Modified Paths

Diff

Modified: trunk/Source/bmalloc/ChangeLog (247408 => 247409)


--- trunk/Source/bmalloc/ChangeLog	2019-07-13 00:09:11 UTC (rev 247408)
+++ trunk/Source/bmalloc/ChangeLog	2019-07-13 00:22:54 UTC (rev 247409)
@@ -1,3 +1,21 @@
+2019-07-12  Keith Miller  <[email protected]>
+
+        Increase JSValue cage size on iOS and reduce the max slide
+        https://bugs.webkit.org/show_bug.cgi?id=199765
+
+        Reviewed by Saam Barati.
+
+        Since the WebContent jetsam limit has changed we sometimes run out
+        of JSValue cage VA space causing us to run out of memory for
+        arrays. This change makes the JSValue cage a more reasonable upper
+        limit for what should be possible without jetsamming.
+
+        The worst case memory mapping with this configuration is has not
+        changed from before. Under both configurations we could map 36GB
+        with a temporary mapping of 38GB (to align the VA to 2GB).
+
+        * bmalloc/Gigacage.h:
+
 2019-07-03  Keith Miller  <[email protected]>
 
         PACCage should first cage leaving PAC bits intact then authenticate

Modified: trunk/Source/bmalloc/bmalloc/Gigacage.h (247408 => 247409)


--- trunk/Source/bmalloc/bmalloc/Gigacage.h	2019-07-13 00:09:11 UTC (rev 247408)
+++ trunk/Source/bmalloc/bmalloc/Gigacage.h	2019-07-13 00:22:54 UTC (rev 247409)
@@ -68,9 +68,9 @@
 
 #if BCPU(ARM64)
 constexpr size_t primitiveGigacageSize = 2 * bmalloc::Sizes::GB;
-constexpr size_t jsValueGigacageSize = 1 * bmalloc::Sizes::GB;
+constexpr size_t jsValueGigacageSize = 2 * bmalloc::Sizes::GB;
 constexpr size_t gigacageBasePtrsSize = 16 * bmalloc::Sizes::kB;
-constexpr size_t maximumCageSizeReductionForSlide = bmalloc::Sizes::GB / 2;
+constexpr size_t maximumCageSizeReductionForSlide = bmalloc::Sizes::GB / 4;
 #define GIGACAGE_ALLOCATION_CAN_FAIL 1
 #else
 constexpr size_t primitiveGigacageSize = 32 * bmalloc::Sizes::GB;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to