3 ms·
It allocates the entire stack, but it doesn't write into it, so it doesn't take up resident memory until used.
by ec109685 5y ago
It allocates the entire stack, but it doesn't write into it, so it doesn't take up resident memory until used.
- chrisseaton 5y agoI'm not a HotSpot expert, but my understanding is it puts the stack through add_reserved_region to commit it.