зеркало из https://github.com/mozilla/gecko-dev.git
Bugzilla bug #69496: set the minimum thread stack size on OpenVMS.
r=colin@theblakes.com. Modified files: _openvms.h, ptthread.c
This commit is contained in:
Родитель
5bf8cf2ae4
Коммит
d7b6d9ee3d
|
@ -56,6 +56,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
|
||||
|
|
|
@ -354,6 +354,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.
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче