Optimizing program by reusing execution result of subclass test function
AssigneeInternational Business Machines Corporation
InventorTakeshi Ogasawara
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorTakeshi Ogasawara
Estimating the term…
A technique for optimizing a program by reusing an execution result of a subclass test function. It includes a reusability determining unit to determine reusability of code of a subclass test function based on whether access to a global memory includes only access for reading out type information specified in a function call, a profiling unit configured to store an execution result of code determined to be reusable and specified information in a storage device in association with actually accessed type information, a reuse processing unit configured to reuse, in response to detection of a function call for calling the code determined to be reusable, the execution result on condition that the pieces of specified information specified in the function calls match, and a monitoring unit configured to monitor the type information associated with the execution result and prohibit reuse of the execution result if the type information is changed.
A method for optimizing a program, comprising:
An optimization apparatus for optimizing a program by reusing an execution result of a subclass test function included in an execution-target program, the optimization apparatus comprising:
Dependencies are inferred from the claim text.