diff --git a/src/system/libroot/posix/malloc/openbsd/PagesAllocator.cpp b/src/system/libroot/posix/malloc/openbsd/PagesAllocator.cpp index 1a300c10e5..7edfacc5ac 100644 --- a/src/system/libroot/posix/malloc/openbsd/PagesAllocator.cpp +++ b/src/system/libroot/posix/malloc/openbsd/PagesAllocator.cpp @@ -27,7 +27,9 @@ static const size_t kPageSize = B_PAGE_SIZE; static const size_t kLargestUsefulChunk = 512 * kPageSize; /*! Amount of virtual address space to reserve when creating new areas. */ -static const size_t kReserveAddressSpace = 512 * 1024 * 1024; +/* (The Haiku kernel will ignore reservations if there's no other address + * space left, so using a large value here should not hurt.) */ +static const size_t kReserveAddressSpace = 1 * 1024 * 1024 * 1024; /*! Cache up to this many percentage points of free memory (compared to used.) */ static const size_t kFreePercentage = 25;