2011-12-14 02:35:41 +01:00
|
|
|
From edda5e8f49b7857379733d652d6b259488bd7b70 Mon Sep 17 00:00:00 2001
|
2011-12-11 03:42:09 +01:00
|
|
|
From: Alexander Graf <agraf@suse.de>
|
|
|
|
Date: Tue, 6 Dec 2011 00:39:50 +0100
|
2012-01-10 17:25:36 +01:00
|
|
|
Subject: [PATCH 15/44] linux-user: map lower in address space
|
2011-12-11 03:42:09 +01:00
|
|
|
|
|
|
|
While trying to compile Java I can into situations where there was simply
|
|
|
|
no virtual address space left for a 32-bit guest to take. For example when
|
|
|
|
Java tried to allocate 1GB of heap.
|
|
|
|
|
|
|
|
Part of the problem is that we're starting to map things at 0x40000000.
|
|
|
|
This is a bit high. Taking that number down would give us a lot of free
|
|
|
|
virtual address space which means we'd be able to squeeze more stuff in.
|
|
|
|
|
|
|
|
Signed-off-by: Alexander Graf <agraf@suse.de>
|
|
|
|
---
|
|
|
|
linux-user/mmap.c | 2 +-
|
|
|
|
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/linux-user/mmap.c b/linux-user/mmap.c
|
2011-12-14 02:35:41 +01:00
|
|
|
index 994c02b..505254f 100644
|
2011-12-11 03:42:09 +01:00
|
|
|
--- a/linux-user/mmap.c
|
|
|
|
+++ b/linux-user/mmap.c
|
2011-12-14 02:35:41 +01:00
|
|
|
@@ -210,7 +210,7 @@ static int mmap_frag(abi_ulong real_start,
|
2011-12-11 03:42:09 +01:00
|
|
|
/* Cygwin doesn't have a whole lot of address space. */
|
|
|
|
# define TASK_UNMAPPED_BASE 0x18000000
|
|
|
|
#else
|
|
|
|
-# define TASK_UNMAPPED_BASE 0x40000000
|
|
|
|
+# define TASK_UNMAPPED_BASE 0x10000000
|
|
|
|
#endif
|
|
|
|
static abi_ulong mmap_next_start = TASK_UNMAPPED_BASE;
|
|
|
|
|
|
|
|
--
|
|
|
|
1.6.0.2
|
|
|
|
|