AVOIDING GUARD TEST INVALIDATION FOR VIRTUAL AND INTERFACE CALLS
First Claim
1. A method comprising:
- receiving, by one or more computer processors, a virtual call associated with a first implementation method;
identifying, by one or more computer processors, a virtual call associated with a second implementation method that appears to have similar functionality to the first implementation method;
determining, by one or more computer processors, whether the virtual call associated with the first implementation method and the virtual call associated with the second implementation method produce the same result; and
responsive to determining that the virtual call associated with the first implementation method and the virtual call associated with the second implementation method produce the same result, using, by one or more computer processors, a result of the virtual call associated with the first implementation method as a result of the virtual call associated with the second implementation method.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the present invention provide methods, computer program products, and systems for optimizing virtual calls. Embodiments of the present invention can be used to receive a virtual call associated with a first implementation method and identify a virtual call associated with a second implementation method that appears to have similar functionality to the first implementation method. Embodiments of the present invention can determine whether the virtual call associated with the first implementation method and the virtual call associated with the second implementation method produce the same result and, responsive to determining that the virtual call associated with the first implementation method and the virtual call associated with the second implementation method produce the same result, use a result of the virtual call associated with the first implementation method as a result of the virtual call associated with the second implementation method.
-
Citations
20 Claims
-
1. A method comprising:
-
receiving, by one or more computer processors, a virtual call associated with a first implementation method; identifying, by one or more computer processors, a virtual call associated with a second implementation method that appears to have similar functionality to the first implementation method; determining, by one or more computer processors, whether the virtual call associated with the first implementation method and the virtual call associated with the second implementation method produce the same result; and responsive to determining that the virtual call associated with the first implementation method and the virtual call associated with the second implementation method produce the same result, using, by one or more computer processors, a result of the virtual call associated with the first implementation method as a result of the virtual call associated with the second implementation method. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A computer program product comprising:
one or more computer readable storage media and program instructions stored on the one or more computer readable storage media, the program instructions comprising; program instructions to receive a virtual call associated with a first implementation method; program instructions to identify a virtual call associated with a second implementation method that appears to have similar functionality to the first implementation method; program instructions to determine whether the virtual call associated with the first implementation method and the virtual call associated with the second implementation method produce the same result; and program instructions to, responsive to determining that the virtual call associated with the first implementation method and the virtual call associated with the second implementation method produce the same result, use a result of the virtual call associated with the first implementation method as a result of the virtual call associated with the second implementation method. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
15. A computer system comprising:
-
one or more computer processors; one or more computer readable storage media; and program instructions stored on the one or more computer readable storage media for execution by at least one of the one or more computer processors, the program instructions comprising; program instructions to receive a virtual call associated with a first implementation method; program instructions to identify a virtual call associated with a second implementation method that appears to have similar functionality to the first implementation method; program instructions to determine whether the virtual call associated with the first implementation method and the virtual call associated with the second implementation method produce the same result; and program instructions to, responsive to determining that the virtual call associated with the first implementation method and the virtual call associated with the second implementation method produce the same result, use a result of the virtual call associated with the first implementation method as a result of the virtual call associated with the second implementation method. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification