mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
_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:
parent
c95eafb39f
commit
167f8de637
@ -183,17 +183,16 @@ PR_EXTERN(PRThread *) PR_GetPrimaryThread();
|
||||
#define _MD_GET_SP(_t) (*((PRUint32 *)((_t)->md.jb) + 2))
|
||||
#define _MD_GET_TOC(_t) (*((PRUint32 *)((_t)->md.jb) + 3))
|
||||
#define INIT_STACKPTR(stackTop) ((unsigned char*)stackTop - 128)
|
||||
#define kDefaultMacintoshStackSize 58 * 1024
|
||||
#define PR_NUM_GCREGS 70
|
||||
#else
|
||||
#define _MD_GET_PC(_t) (*((PRUint32 *)((_t)->md.jb) + 6))
|
||||
#define _MD_GET_SP(_t) (*((PRUint32 *)((_t)->md.jb) + 12))
|
||||
#define INIT_STACKPTR(stackTop) ((unsigned char*)stackTop - 4)
|
||||
#define kDefaultMacintoshStackSize 58 * 1024
|
||||
#define PR_NUM_GCREGS 13
|
||||
#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
|
||||
|
@ -1121,11 +1121,6 @@ PR_IMPLEMENT(PRThread*) _PR_CreateThread(PRThreadType type,
|
||||
native = (((scope == PR_GLOBAL_THREAD)|| (scope == PR_GLOBAL_BOUND_THREAD))
|
||||
&& _PR_IS_NATIVE_THREAD_SUPPORTED());
|
||||
|
||||
#ifdef XP_MAC
|
||||
if (stackSize < _MD_DEFAULT_STACK_SIZE)
|
||||
stackSize = _MD_DEFAULT_STACK_SIZE;
|
||||
#endif
|
||||
|
||||
_PR_ADJUST_STACKSIZE(stackSize);
|
||||
|
||||
if (native) {
|
||||
|
Loading…
Reference in New Issue
Block a user