3 ms·
I wonder here if the problem is really just the small default stack size on Linux. In fact, why is the stack limited to 8MB by default? (I'm no fan of C++, bu
by rwmj 17y ago
I wonder here if the problem is really just the small default stack size on Linux. In fact, why is the stack limited to 8MB by default?
(I'm no fan of C++, but I suspect a number of languages that allow general stack allocated objects could fail in the same way).
- pavlov 17y ago8 MB is also the default on Mac OS X. That's for the main thread -- for other threads (at least those created by the standard pthread mechanism), it's only 512 kB: http://developer.apple.com/mac/library/qa/qa2005/qa1419.html http://developer.apple.com/mac/library/qa/qa2005/qa1419.html
- stonemetal 17y agoCould be worse on windows (even 64bit) it defaults to 1MB and a spacious 4MB on Itanium.