Patent ID: 8959490
Filing Date: 2015-02-17
Classification: G06F

Abstract:
1. A computer implemented method for optimizing usage of heap memory, the method comprising: loading into memory of a computer by a processor of the computer, existing program code instructions of a computer program; inserting additional program code instructions at predefined locations of the existing program code, the additional program code instructions being configured upon execution to search a header of a heap memory block utilized by the computer program and to identify data associated with lag and drag lifetimes of the heap memory block when used by the computer program; additionally inserting initial program code instructions at an initial portion of the existing program code operable to create a page table comprising census information, and also ending program code instructions at an ending portion of the computer program operable to perform a final update of the census information in the page table; executing the computer program with all of the inserted program code; creating during execution of the computer program the header of the heap memory block allocated in heap memory, collecting runtime data comprising timestamps associated with lag and drag lifetimes of the heap memory block and storing the runtime data in the header of the heap memory block; and identifying subsequent to the execution of the computer program from the collected runtime data both the lag and also the drag lifetimes associated with the heap memory block by utilizing the final update of the census information.