System and method for object representation in an object-oriented programming language
AssigneeInternational Business Machines Corporation
InventorGanesan Ramalingam
Life of this patent
Estimating the term…
Abstract
A method and system for optimizing the representation of objects in an object-oriented programming language to reduce the memory requirement during the execution of the program, includes identifying the lifetimes of the various members of objects belonging to various classes. Next, the method uses the lifetime information to generate representations of objects belonging to these collections. Memory requirements are optimized by having members which do not have overlapping lifetimes share the same memory location.
Claims18
A method for processing an object-oriented program having objects belonging to a plurality of classes, each class of said plurality of classes having a plurality of members, the method comprising:
- identifying a member lifetime for each member in said plurality of members;
- identifying a set of members in one class of said plurality of classes such that no two members in said set have overlapping member lifetimes;
- and
- creating a representation for objects belonging to said one class in which members of said set of members are located at the same offset within said objects.
A method for processing an object-oriented program having a plurality of classes, each class of said plurality of classes having a plurality of members, the method comprising:
- identifying a member lifetime for each member in said plurality of members;
- identifying a set of members in one class of said plurality of classes, said set of members comprising members having similar lifetimes;
- identifying a lifetime of said identified set of members, wherein said lifetime of said set of members identifies a start point and an end point in the program;
- creating a supplemental class comprising the identified set of members;
- removing said identified set of members from said class, and
- initializing a map data structure which associates each object of said class with an object in said supplemental class.
A system for processing an object-oriented program having objects belonging to a plurality of classes, each class of said plurality of classes having a plurality of members, comprising:
- means for identifying a member lifetime for each member in said plurality of members;
- means for identifying a set of members in one class of said plurality of classes such that no two members in said set have overlapping lifetimes;
- and
- means for creating a representation of objects belonging to said one class in which members of said set of members are located at the same offset within said objects.
A system for processing an object-oriented program having objects belonging to a plurality of classes, each class of said plurality of classes having a plurality of members, said system comprising:
- a machine readable recording medium comprising a program for identifying a member lifetime for each member in said plurality of members, identifying a set of members in one class of said plurality of classes such that no two members in said set have overlapping lifetimes, and creating a representation for objects belonging to said one class where members of said set of members are located at the same offset within said objects.
A system for processing an object-oriented program having a plurality of classes, each class of said plurality of classes having a plurality of members, the system comprising:
- means for identifying a member lifetime for each member in said plurality of members;
- means for identifying a set of members in one of said plurality of classes, said set of members comprising members having similar lifetimes;
- means for identifying a lifetime of said identified set of members, wherein said lifetime of said set of members identifies a start point and an end point in the program;
- means for creating a supplemental class comprising the identified set of members;
- means for removing said identified set of members from said class;
- and
- means for initializing a map data structure which associates each object of said class with an object in said supplemental class.
A system for processing an object-oriented program having a plurality of classes, each class of said plurality of classes having members belonging to the classes, said system comprising:
- a machine readable recording medium comprising a program for identifying a member lifetime for each member in said plurality of members, identifying a set of members in one said plurality of classes, said set of members comprising members having similar lifetimes, identifying a lifetime of said identified set of members, wherein said lifetime of said set of members identifies a start point and an end point in the program, creating a supplemental class comprising the identified set of members, removing said identified set of members from said class, and initializing a map data structure which associates each object of said class with an object in said supplemental class.
Dependencies are inferred from the claim text.