Method and apparatus for implementing fast subclass and subtype checks
AssigneeSun Microsystems, Inc.
InventorsLars Bak, Srdjan Mitrovic, Urs Hölzle
Life of this patent
Estimating the term…
Loading patent…
AssigneeSun Microsystems, Inc.
InventorsLars Bak, Srdjan Mitrovic, Urs Hölzle
Estimating the term…
Methods and apparatus for performing fast subtype checks during program execution are disclosed. According to one aspect of the present invention, a method for determining whether a class associated with an object that is a part of an object-based computing system is a subtype of another type includes obtaining a candidate type from a dynamic storage location that is associated with a class which is associated with the object, and comparing the candidate type against a first type that is potentially the same as the candidate type. A determination is then made as to whether the candidate type is substantially equal to the first type. When the determination is that the candidate type is substantially equal to the first type, an indication that the candidate type is a subtype of the first type is provided. In one embodiment, the candidate type obtained from the dynamic storage location is obtained from a cache element in the class associated with the object.
A computer-implemented method for determining whether a class associated with an object that is a part of an object-based computing system is a subtype of another type, the method comprising:
A computer system arranged to determine a subtype associated with a first object that is resident on the computer system, the computer system including:
A computer program product arranged to cause a computer to determine a subtype associated with a first object that is a part of an object-based computing system, the computer program product comprising:
A computer-implemented method for performing a subtype check on an object that is a member of a particular class, the method comprising:
A computer-implemented method for determine whether a class associated with an object that is a part of an object-based computing system is a subtype of another type, the object being of a first type, the method comprising:
A computer-implemented method for determining whether a class associated with an object that is a part of an object-based computing system is a subtype of another type, the method comprising:
A computer system arranged to determine a subtype associated with an object of a first type that is resident on the computer system, the computer system including:
Dependencies are inferred from the claim text.