Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amd64/include make stack size limit (both initial a...



details:   https://anonhg.NetBSD.org/src/rev/534583c0bf7b
branches:  trunk
changeset: 762218:534583c0bf7b
user:      drochner <drochner%NetBSD.org@localhost>
date:      Thu Feb 17 18:07:50 2011 +0000

description:
make stack size limit (both initial and maximum) for native code
the double of that in 32-but emul mode, so that code which works
in emulation (or on the i386 port) will likely not overflow the
stack if built as native 64-bit program
This is still very conservative.
(before, the max stack size was natively even less than for 32bit emul)

diffstat:

 sys/arch/amd64/include/vmparam.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r deefa4e4cc9f -r 534583c0bf7b sys/arch/amd64/include/vmparam.h
--- a/sys/arch/amd64/include/vmparam.h  Thu Feb 17 17:55:36 2011 +0000
+++ b/sys/arch/amd64/include/vmparam.h  Thu Feb 17 18:07:50 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.24 2010/11/14 13:33:21 uebayasi Exp $    */
+/*     $NetBSD: vmparam.h,v 1.25 2011/02/17 18:07:50 drochner Exp $    */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -80,10 +80,10 @@
 #define        MAXDSIZ         (8L*1024*1024*1024)     /* max data size */
 #endif
 #ifndef        DFLSSIZ
-#define        DFLSSIZ         (2*1024*1024)           /* initial stack size limit */
+#define        DFLSSIZ         (4*1024*1024)           /* initial stack size limit */
 #endif
 #ifndef        MAXSSIZ
-#define        MAXSSIZ         (32*1024*1024)          /* max stack size */
+#define        MAXSSIZ         (128*1024*1024)         /* max stack size */
 #endif
 
 /*



Home | Main Index | Thread Index | Old Index