From 6b1457cfd6baa332ffa968b74fff705bac72e762 Mon Sep 17 00:00:00 2001 From: Hannes Payer Date: Fri, 4 May 2018 15:05:33 +0200 Subject: [PATCH] Reduce maximal code range size to 128M on Linux, Windows, and OSX for x64 and ia32. Bug: chromium:800348, chromium:827627, chromium:839750 Change-Id: I112e20b83eb1937476ebb4f30cf5679113759c0c Reviewed-on: https://chromium-review.googlesource.com/1044195 Reviewed-by: Michael Starzinger Commit-Queue: Hannes Payer Cr-Commit-Position: refs/heads/master@{#52996} --- src/globals.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/globals.h b/src/globals.h index 46aa1a0950..d263c1ff83 100644 --- a/src/globals.h +++ b/src/globals.h @@ -200,7 +200,7 @@ constexpr size_t kCodeRangeAreaAlignment = 64 * KB; // OS page on PPC Linux constexpr size_t kMaximalCodeRangeSize = 128 * MB; constexpr size_t kCodeRangeAreaAlignment = 4 * KB; // OS page. #else -constexpr size_t kMaximalCodeRangeSize = 512 * MB; +constexpr size_t kMaximalCodeRangeSize = 128 * MB; constexpr size_t kCodeRangeAreaAlignment = 4 * KB; // OS page. #endif #if V8_OS_WIN