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).
This commit is contained in:
parent
9f629ef38e
commit
173342c0ab
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user