зеркало из https://github.com/mozilla/gecko-dev.git
_macos.h: define _MD_MINIMUM_STACK_SIZE to be 58K.
pruthr.c: removed unnecessary XP_MAC code since _MD_MINIMUM_STACK_SIZE is checked by _PR_ADJUST_STACKSIZE.
This commit is contained in:
Родитель
c95eafb39f
Коммит
167f8de637
|
@ -183,17 +183,16 @@ PR_EXTERN(PRThread *) PR_GetPrimaryThread();
|
||||||
#define _MD_GET_SP(_t) (*((PRUint32 *)((_t)->md.jb) + 2))
|
#define _MD_GET_SP(_t) (*((PRUint32 *)((_t)->md.jb) + 2))
|
||||||
#define _MD_GET_TOC(_t) (*((PRUint32 *)((_t)->md.jb) + 3))
|
#define _MD_GET_TOC(_t) (*((PRUint32 *)((_t)->md.jb) + 3))
|
||||||
#define INIT_STACKPTR(stackTop) ((unsigned char*)stackTop - 128)
|
#define INIT_STACKPTR(stackTop) ((unsigned char*)stackTop - 128)
|
||||||
#define kDefaultMacintoshStackSize 58 * 1024
|
|
||||||
#define PR_NUM_GCREGS 70
|
#define PR_NUM_GCREGS 70
|
||||||
#else
|
#else
|
||||||
#define _MD_GET_PC(_t) (*((PRUint32 *)((_t)->md.jb) + 6))
|
#define _MD_GET_PC(_t) (*((PRUint32 *)((_t)->md.jb) + 6))
|
||||||
#define _MD_GET_SP(_t) (*((PRUint32 *)((_t)->md.jb) + 12))
|
#define _MD_GET_SP(_t) (*((PRUint32 *)((_t)->md.jb) + 12))
|
||||||
#define INIT_STACKPTR(stackTop) ((unsigned char*)stackTop - 4)
|
#define INIT_STACKPTR(stackTop) ((unsigned char*)stackTop - 4)
|
||||||
#define kDefaultMacintoshStackSize 58 * 1024
|
|
||||||
#define PR_NUM_GCREGS 13
|
#define PR_NUM_GCREGS 13
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define _MD_DEFAULT_STACK_SIZE kDefaultMacintoshStackSize
|
#define _MD_DEFAULT_STACK_SIZE (58 * 1024)
|
||||||
|
#define _MD_MINIMUM_STACK_SIZE (58 * 1024)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Initialize the thread machine dependent data structure
|
** Initialize the thread machine dependent data structure
|
||||||
|
|
|
@ -1121,11 +1121,6 @@ PR_IMPLEMENT(PRThread*) _PR_CreateThread(PRThreadType type,
|
||||||
native = (((scope == PR_GLOBAL_THREAD)|| (scope == PR_GLOBAL_BOUND_THREAD))
|
native = (((scope == PR_GLOBAL_THREAD)|| (scope == PR_GLOBAL_BOUND_THREAD))
|
||||||
&& _PR_IS_NATIVE_THREAD_SUPPORTED());
|
&& _PR_IS_NATIVE_THREAD_SUPPORTED());
|
||||||
|
|
||||||
#ifdef XP_MAC
|
|
||||||
if (stackSize < _MD_DEFAULT_STACK_SIZE)
|
|
||||||
stackSize = _MD_DEFAULT_STACK_SIZE;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
_PR_ADJUST_STACKSIZE(stackSize);
|
_PR_ADJUST_STACKSIZE(stackSize);
|
||||||
|
|
||||||
if (native) {
|
if (native) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче