×

Method for optimizing creation and destruction of objects in computer programs

  • US 6,381,738 B1
  • Filed: 07/16/1999
  • Issued: 04/30/2002
  • Est. Priority Date: 07/16/1999
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method to analyze and transform a computer program so that the information can be used to reduce the overhead of allocation and deallocation of objects in the program, said method comprising the step of identifying those objects allocated on a heap that can instead be allocated on a stack frame of a procedure, without changing the semantics of a computer program by performing an interprocedural analysis of said computer program, wherein said identifying step further comprises the steps of:

  • identifying for each procedure analyzed, reachability relationships among different objects, fields of objects, and pointers referenced in each said procedure; and

    identifying an object as stack-allocatable for each object allocated in a procedure, if at the end of said procedure, it is not reachable from any global variable, parameter of said procedure, or return value of said procedure.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×