This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Enable USE_MMAP for all Linux ports
- From: Andrew Haley <aph at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: Mon, 19 Jan 2004 13:08:41 +0000
- Subject: Enable USE_MMAP for all Linux ports
This patch fixes some failures to run some large Java applications on
Linux. It's for trunk and branch.
On a Linux system, there amy not be a great deal of available memory
at brk(). glibc uses brk() until it runs out, then uses mmap().
Andrew.
2004-01-19 Andrew Haley <aph@redhat.com>
* include/private/gcconfig.h (USE_MMAP): Define.
diff -u -r1.35 gcconfig.h
--- include/private/gcconfig.h 31 Oct 2003 11:03:00 -0000 1.35
+++ include/private/gcconfig.h 19 Jan 2004 13:05:10 -0000
@@ -616,6 +616,7 @@
# ifdef LINUX
# define OS_TYPE "LINUX"
# define STACKBOTTOM ((ptr_t)0xf0000000)
+# define USE_MMAP
# define USE_GENERIC_PUSH_REGS
/* We never got around to the assembly version. */
/* # define MPROTECT_VDB - Reported to not work 9/17/01 */