Invention Grant
- Patent Title: Adjusting the amount of memory allocated to a call stack
- Patent Title (中): 调整分配给调用堆栈的内存量
-
Application No.: US13159480Application Date: 2011-06-14
-
Publication No.: US08769233B2Publication Date: 2014-07-01
- Inventor: Brent W. Jacobs , Nathan D. Miller
- Applicant: Brent W. Jacobs , Nathan D. Miller
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agent Owen J. Gamon; Matthew C. Zehrer
- Main IPC: G06F12/00
- IPC: G06F12/00 ; G06F13/00 ; G06F13/28

Abstract:
In an embodiment, a plurality of stack depths of a stack are sampled from all stack depths of the stack. An average of the plurality of stack depths is calculated. If a number of the plurality of stack depths is greater than a maximum sample threshold and the average of the plurality of stack depths is greater than or equal to a current depth of the stack, then pages are deallocated from the stack that are above the average of the plurality of stack depths. If the number of the plurality of stack depths is greater than the maximum sample threshold and the average of the plurality of stack depths is less than the current depth of the stack, then pages are deallocated from the stack that are above the current depth of the stack.
Public/Granted literature
- US20120324194A1 ADJUSTING THE AMOUNT OF MEMORY ALLOCATED TO A CALL STACK Public/Granted day:2012-12-20
Information query