发明名称 Method for optimizing creation and destruction of objects in computer programs
摘要 Information is computed about the reachability relationships among objects and pointers to enable transformation of a computer program for optimizing the creation and destruction of objects, while strictly performing the semantics of the original program. An interprocedural analysis is used to determine whether an object that is allocated on the heap during the execution of a procedure is not reachable from any global variable, parameter, or the return value of the procedure after it returns. If so, that object can be allocated on the stack frame of the procedure in which it is otherwise heap-allocated. This simplifies the memory allocation and deallocation operations, as allocation on the stack can be done more efficiently than allocation on the heap, and objects allocated on the stack frame of a procedure are automatically deallocated when the procedure returns, without incurring the overhead of garbage collection. This, in turn, leads to faster programs which use fewer computer processor resources to execute. The interprocedural analysis of the program summarizes the effect of a procedure call succinctly for different calling contexts of the procedure using a single summary representation. The method handles exceptions in the programming language, while taking advantage of the information about the visibility of variables in the exception handler. Variants of the method show how one or several of the features of the method may be performed.
申请公布号 US6381738(B1) 申请公布日期 2002.04.30
申请号 US19990354140 申请日期 1999.07.16
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 CHOI JONG-DEOK;GUPTA MANISH;SERRANO MAURICIO J.;SREEDHAR VUGRANAM C.;MIDKIFF SAMUEL PRATT
分类号 G06F9/45;G06F12/02;(IPC1-7):G06F9/45 主分类号 G06F9/45
代理机构 代理人
主权项
地址