← Back to context

Comment by abcd_f

14 hours ago

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

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.