VirtualBox

Changeset 66010 in vbox for trunk/src/libs


Ignore:
Timestamp:
Mar 9, 2017 11:32:13 AM (8 years ago)
Author:
vboxsync
Message:

src/libs/xpcom: bugref:8070: increase the default stack size for nspr threads from 128K to 512K on 64-bit hosts

File:
1 edited

Legend:

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

    r15995 r66010  
    401401    if (0 == stackSize) stackSize = (64 * 1024);  /* default == 64K */
    402402#else
    403     if (0 == stackSize) stackSize = (2 * 64 * 1024);  /* default == 128K */
     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
    404411#endif /* VBOX_USE_IPRT_IN_NSPR */
    405412#ifdef _MD_MINIMUM_STACK_SIZE
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