logoalt Hacker News

abcd_f • yesterday at 8:27 PM • 2 replies • view on HN

In Windows, by default, thread's stack is capped at 1MB. Main thread gets more but that's somewhat off the point.


Replies

Xirdus • today at 4:06 AM

There's stack the CPU primitive, and there's stack the heap-allocated data structure. Goose's multiple stacks are the latter. Unrelated to OS-managed thread stacks. More like VM-managed thread stacks in Java and other bytecode languages, which also live on the heap.

stickfigure • yesterday at 9:13 PM

Stack size is completely arbitrary, just like heap size. You have 2^64 addresses to work with.