Stacks
The database server allocates an area in the virtual portion of shared memory to store nonshared data for the functions that a thread executes. This area is called the stack.
For information about how to set the size of the stack, see Stacks.
The stack enables a virtual processor to protect the nonshared data of a thread from being overwritten by other threads that concurrently execute the same code. For example, if several client applications concurrently perform SELECT statements, the session threads for each client execute many of the same functions in the code. If a thread did not have a private stack, one thread might overwrite local data that belongs to another thread within a function.