tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit c9b293714772ace8988dead2381cfafdc9b86cd8
parent a6dee5b53d67439568fc0b968ad76b39094699ae
Author: Atila Butkovits <abutkovits@mozilla.com>
Date:   Mon, 24 Nov 2025 04:40:53 +0200

Revert "Bug 1969856 - Limit PHC to 128MB of virtual address space r=gsvelto" for causing Gtest failures.

This reverts commit fc3765bf0b6c6dec2645b88f14c74933e42c7e35.

Diffstat:
Mmemory/build/PHC.cpp | 14+++-----------
1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/memory/build/PHC.cpp b/memory/build/PHC.cpp @@ -365,18 +365,10 @@ static_assert((kPhcAlign % kPageSize) == 0); // PHC will reserve some address space this large, then depending on runtime // configuration will use a smaller fraction of it. Making -// kPhcVirtualReservation the upper-bound of PHC's memory size. -// * On 32bit systems with less available address space we choose a more -// moderate value. -// * On 64bit systems we set the limit to so that there are no more than 32,768 -// mappings, half of Linux's default limit (Bug 1969856). For 4KB pages -// that's 128MB. +// kPhcVirtualReservation the upper-bound of PHC's memory size. On 32bit +// systems with less available address space we choose a more moderate value. #ifdef HAVE_64BIT_BUILD -# if defined(XP_DARWIN) && defined(__aarch64__) -static const size_t kPhcVirtualReservation = 512 * 1024 * 1024; -# else -static const size_t kPhcVirtualReservation = 128 * 1024 * 1024; -# endif +static const size_t kPhcVirtualReservation = 1024 * 1024 * 1024; #else static const size_t kPhcVirtualReservation = 2 * 1024 * 1024; #endif