VirtualBox

Changeset 66019 in vbox for trunk/src/libs


Ignore:
Timestamp:
Mar 9, 2017 4:14:44 PM (8 years ago)
Author:
vboxsync
Message:

nsprpub/.../ptthread.c: Use the IPRT default stack size (512 KB) instead of hardcoding it here as well. We really don't want to use a much smaller default on 32-bit system, because that will only lead to 32-bit specific trouble and we don't need that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptthread.c

    r66010 r66019  
    398398#endif /* !VBOX_USE_IPRT_IN_NSPR */
    399399
    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. */
    401401    if (0 == stackSize) stackSize = (64 * 1024);  /* default == 64K */
    402 #else
    403 # ifdef RT_ARCH_AMD64
    404     /* @bugref{8070}: At least on Mac OS X we run into a stack overflow if we
    405      * have to handle many snapshots. Space is not a real concern on 64-bit
    406      * hosts. */
    407     if (0 == stackSize) stackSize = (512 * 1024);  /* default == 512K */
    408 # else
    409     if (0 == stackSize) stackSize = (128 * 1024);  /* default == 128K */
    410 # endif
    411 #endif /* VBOX_USE_IPRT_IN_NSPR */
    412402#ifdef _MD_MINIMUM_STACK_SIZE
    413403    if (stackSize < _MD_MINIMUM_STACK_SIZE) stackSize = _MD_MINIMUM_STACK_SIZE;
    414404#endif
    415 #ifndef VBOX_USE_IPRT_IN_NSPR
    416405    /*
    417406     * Linux doesn't have pthread_attr_setstacksize.
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette