Port-amd64 archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Text size limits
Hi all,
a while ago, the text size limit on amd64 was raised to 128MB based on
GCC no longer fitting during bootstrap. Looking back, I would like to
get a bit more of a safety marging, since e.g. aggressive inlining or
debug builds can both provide significant larger code than a base line.
I'd like to raise the limit consistently to 256MB for i386 and amd64.
The current i386 limit is still 64MB, which definitely is too close for
comfort in netbsd-6.
Joerg
Index: i386/include/vmparam.h
===================================================================
RCS file: /home/joerg/repo/netbsd/src/sys/arch/i386/include/vmparam.h,v
retrieving revision 1.73
diff -u -p -r1.73 vmparam.h
--- i386/include/vmparam.h 19 Feb 2012 10:39:06 -0000 1.73
+++ i386/include/vmparam.h 28 Apr 2012 00:13:09 -0000
@@ -63,7 +63,7 @@
/*
* Virtual memory related constants, all in bytes
*/
-#define MAXTSIZ (64*1024*1024) /* max text size */
+#define MAXTSIZ (256*1024*1024) /* max text size */
#ifndef DFLDSIZ
#define DFLDSIZ (256*1024*1024) /* initial data size
limit */
#endif
Index: amd64/include/vmparam.h
===================================================================
RCS file: /home/joerg/repo/netbsd/src/sys/arch/amd64/include/vmparam.h,v
retrieving revision 1.29
diff -u -p -r1.29 vmparam.h
--- amd64/include/vmparam.h 10 Jan 2012 16:03:17 -0000 1.29
+++ amd64/include/vmparam.h 28 Apr 2012 00:12:49 -0000
@@ -72,7 +72,7 @@
/*
* Virtual memory related constants, all in bytes
*/
-#define MAXTSIZ (128*1024*1024) /* max text size */
+#define MAXTSIZ (256*1024*1024) /* max text size */
#ifndef DFLDSIZ
#define DFLDSIZ (256*1024*1024) /* initial data size
limit */
#endif
@@ -90,7 +90,7 @@
* 32bit memory related constants.
*/
-#define MAXTSIZ32 (128*1024*1024)
+#define MAXTSIZ32 (256*1024*1024)
#ifndef DFLDSIZ32
#define DFLDSIZ32 (256*1024*1024) /* initial data size
limit */
#endif
Home |
Main Index |
Thread Index |
Old Index