发明名称 |
Method, program, and system for processing object in computer |
摘要 |
A method, an article of manufacture, and system for heapifying an object. The method includes: storing, in a working set, a first address of a certain object in a stack frame, copying the certain object into the heap area and holding a second address of the certain object in the heap area, following each stack frame to find a pointer pointing to the first address stored in the working set, converting the address that the pointer points to into the second address, proceeding to a next stack frame, where the address conversion includes storing an address of another object in the working set if the converted address is stored as a value of a field of the other object in the stack frame, and terminating the process in response to a lack of pointers found in the stack frame to point to the addresses stored in the working set. |
申请公布号 |
US8838874(B2) |
申请公布日期 |
2014.09.16 |
申请号 |
US201113287242 |
申请日期 |
2011.11.02 |
申请人 |
International Business Machines Corporation |
发明人 |
Horii Hiroshi;Kawachiya Kiyokuni |
分类号 |
G06F12/02;G06F9/455;G06F9/44 |
主分类号 |
G06F12/02 |
代理机构 |
|
代理人 |
Tang Jeff |
主权项 |
1. A computer implemented method for heapifying an object included in a stack frame of a stack, the method comprising the steps of:
storing, in a working set, a first address of an object in a stack frame to be copied into a heap area; copying the object into the heap area and holding a second address of the object in the heap area; following each stack frame sequentially to find a pointer pointing to the first address stored in the working set; converting, upon finding the pointer, the first address into the second address in the heap area; proceeding to a next stack frame, wherein the address conversion includes storing an address of another object in the working set if the converted address is stored as a value of a field of the other object in the stack frame; wherein at least one of the above steps is carried out using a computer device. |
地址 |
Armonk NY US |