摘要 |
A method for mapping of logical memory regions (usually referred to as pages) of application addressable contiguous memory space to non-contiguous pages of the physical memory is provided. Each thread in an application is allocated a substantially larger amount of virtual memory, than will typically be used by the thread. Initially only the page at the top of the stack is mapped to a physical page. Later, as the stack expands, more pages of virtual memory are mapped to physical pages, up to the limit of the allocated amount. At the end opposite to the top of the stack, the page is marked as inaccessible, to allow reporting of a stack overflow condition.
|