Changeset 66019 in vbox for trunk/src/libs
- Timestamp:
- Mar 9, 2017 4:14:44 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptthread.c
r66010 r66019 398 398 #endif /* !VBOX_USE_IPRT_IN_NSPR */ 399 399 400 #ifndef VBOX_USE_IPRT_IN_NSPR 400 #ifndef VBOX_USE_IPRT_IN_NSPR /* We let stackSize stay zero and let IPRT choose a default size. */ 401 401 if (0 == stackSize) stackSize = (64 * 1024); /* default == 64K */ 402 #else403 # ifdef RT_ARCH_AMD64404 /* @bugref{8070}: At least on Mac OS X we run into a stack overflow if we405 * have to handle many snapshots. Space is not a real concern on 64-bit406 * hosts. */407 if (0 == stackSize) stackSize = (512 * 1024); /* default == 512K */408 # else409 if (0 == stackSize) stackSize = (128 * 1024); /* default == 128K */410 # endif411 #endif /* VBOX_USE_IPRT_IN_NSPR */412 402 #ifdef _MD_MINIMUM_STACK_SIZE 413 403 if (stackSize < _MD_MINIMUM_STACK_SIZE) stackSize = _MD_MINIMUM_STACK_SIZE; 414 404 #endif 415 #ifndef VBOX_USE_IPRT_IN_NSPR416 405 /* 417 406 * Linux doesn't have pthread_attr_setstacksize.
Note:
See TracChangeset
for help on using the changeset viewer.