Title: [286471] trunk/Source/_javascript_Core
- Revision
- 286471
- Author
- sbar...@apple.com
- Date
- 2021-12-02 18:06:24 -0800 (Thu, 02 Dec 2021)
Log Message
Lower structureHeapAddressSize on more memory limited ARM64 devices
https://bugs.webkit.org/show_bug.cgi?id=233786
<rdar://85940431>
Reviewed by Yusuke Suzuki.
Some processes using JSC are failing the mmap for the 1GB region.
Let's lower the region size to 512MB on lower memory iOS devices.
* runtime/JSCConfig.h:
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (286470 => 286471)
--- trunk/Source/_javascript_Core/ChangeLog 2021-12-03 01:42:15 UTC (rev 286470)
+++ trunk/Source/_javascript_Core/ChangeLog 2021-12-03 02:06:24 UTC (rev 286471)
@@ -1,5 +1,18 @@
2021-12-02 Saam Barati <sbar...@apple.com>
+ Lower structureHeapAddressSize on more memory limited ARM64 devices
+ https://bugs.webkit.org/show_bug.cgi?id=233786
+ <rdar://85940431>
+
+ Reviewed by Yusuke Suzuki.
+
+ Some processes using JSC are failing the mmap for the 1GB region.
+ Let's lower the region size to 512MB on lower memory iOS devices.
+
+ * runtime/JSCConfig.h:
+
+2021-12-02 Saam Barati <sbar...@apple.com>
+
Fix OOM crash in JSValue::toWTFStringForConsole
https://bugs.webkit.org/show_bug.cgi?id=233775
<rdar://85259423>
Modified: trunk/Source/_javascript_Core/runtime/JSCConfig.h (286470 => 286471)
--- trunk/Source/_javascript_Core/runtime/JSCConfig.h 2021-12-03 01:42:15 UTC (rev 286470)
+++ trunk/Source/_javascript_Core/runtime/JSCConfig.h 2021-12-03 02:06:24 UTC (rev 286471)
@@ -40,7 +40,11 @@
using JITWriteSeparateHeapsFunction = void (*)(off_t, const void*, size_t);
#endif
+#if PLATFORM(IOS_FAMILY) && CPU(ARM64) && !CPU(ARM64E)
+constexpr uintptr_t structureHeapAddressSize = 512 * MB;
+#else
constexpr uintptr_t structureHeapAddressSize = 1 * GB;
+#endif
struct Config {
static Config& singleton();
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes