diff options
author | wtc%netscape.com <devnull@localhost> | 2001-02-22 23:30:18 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2001-02-22 23:30:18 +0000 |
commit | eda6eb59c81f229e14b9c64659f9fb9f3326cb22 (patch) | |
tree | 4f90b980ebb34461cd6c5e2f05d6f1d75059c9ce | |
parent | 0d73c9e68820cfb4b53a5945d9f354addad5aa18 (diff) | |
download | nspr-hg-eda6eb59c81f229e14b9c64659f9fb9f3326cb22.tar.gz |
Bugzilla bug #69496: set the minimum thread stack size on OpenVMS.XPCDOM_20010223_BASE
r=colin@theblakes.com.
Modified files: _openvms.h, ptthread.c
(NSPRPUB_CLIENT_BRANCH)
-rw-r--r-- | pr/include/md/_openvms.h | 1 | ||||
-rw-r--r-- | pr/src/pthreads/ptthread.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/pr/include/md/_openvms.h b/pr/include/md/_openvms.h index 091f202b..97f55aa6 100644 --- a/pr/include/md/_openvms.h +++ b/pr/include/md/_openvms.h @@ -40,6 +40,7 @@ #define _PR_VMBASE 0x30000000 #define _PR_STACK_VMBASE 0x50000000 #define _MD_DEFAULT_STACK_SIZE 131072L +#define _MD_MINIMUM_STACK_SIZE 131072L /* ** This is not defined on OpenVMS. I believe its only used in GC code, and diff --git a/pr/src/pthreads/ptthread.c b/pr/src/pthreads/ptthread.c index af751db8..63a83dcd 100644 --- a/pr/src/pthreads/ptthread.c +++ b/pr/src/pthreads/ptthread.c @@ -338,6 +338,9 @@ static PRThread* _PR_CreateThread( #endif /* !defined(_PR_DCETHREADS) */ if (0 == stackSize) stackSize = (64 * 1024); /* default == 64K */ +#ifdef _MD_MINIMUM_STACK_SIZE + if (stackSize < _MD_MINIMUM_STACK_SIZE) stackSize = _MD_MINIMUM_STACK_SIZE; +#endif /* * Linux doesn't have pthread_attr_setstacksize. */ |