1. A system, comprising: processing logic; and a memory management module configured to; allocate a portion of memory space for a thread stack unit; and partition the thread stack unit to include a stack and a thread-local storage region; wherein the stack is associated with a thread that is executable by the processing logic, the thread-local storage region is adapted to store data associated with the thread, and the portion of memory space allocated for the thread stack unit is based on a size of the thread-local storage region that is determined when the thread is generated and a size of the stack.