Stack storage

In Language Environment®, a runtime stack, or stack storage, is automatically created when a thread is created, and freed when the thread terminates. When a thread is created, Language Environment allocates an initial stack, which can have stack increments added to it as needed. Users can specify the sizes of the initial stack and additional stack increments; they can also tune the stack for better performance. For more information, seez/OS Language Environment Programming Guide.

For AMODE 64 support, users can specify a stack size above the bar, and can specify the maximum stack size. For more information, see the information on stack and heap storage in z/OS Language Environment Programming Guide for 64-bit Virtual Addressing Mode.

In AMODE 31, each stack segment is allocated separately. In AMODE 64, the maximum possible stack size can be specified. A contiguous block of storage is allocated above the bar and each segment is unguarded as needed.