From 173342c0ab918a72a12540ee1de8213720a2d3f5 Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Fri, 17 Aug 2012 15:34:11 +0100 Subject: [PATCH] Change the heap reservation for 64-bit platforms. Hoard reserves a chunk of the address space to grow the heap into. As there is a much larger address space available on 64-bit systems, we may as well reserve a larger chunk of address space (64GB for now, though could probably reserve a lot more than that and still leave plenty of room for other areas). --- src/system/libroot/posix/malloc/arch-specific.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/system/libroot/posix/malloc/arch-specific.cpp b/src/system/libroot/posix/malloc/arch-specific.cpp index c9e311c134..0bcaac8fcd 100644 --- a/src/system/libroot/posix/malloc/arch-specific.cpp +++ b/src/system/libroot/posix/malloc/arch-specific.cpp @@ -58,8 +58,13 @@ static const size_t kInitialHeapSize = 64 * B_PAGE_SIZE; static const size_t kHeapIncrement = 16 * B_PAGE_SIZE; // the steps in which to increase the heap size (must be a power of 2) +#if B_HAIKU_64_BIT +static const addr_t kHeapReservationBase = 0x1000000000; +static const addr_t kHeapReservationSize = 0x1000000000; +#else static const addr_t kHeapReservationBase = 0x18000000; static const addr_t kHeapReservationSize = 0x48000000; +#endif static area_id sHeapArea; static hoardLockType sHeapLock;