Protecting object identity in a language with built-in synchronization objects
First Claim
1. A process for protecting object identity in an object-oriented programming language, comprising:
- instantiating an object in memory; and
locking the object in response to the instantiating, wherein the identity of the locked object is protected from threads that attempt to synchronize on the locked object.
2 Assignments
0 Petitions
Accused Products
Abstract
Methods and systems for protecting object identity in an object-oriented programming language. An object from a class for protecting object identity is instantiated in memory. The object includes a first method that determines whether two object values are equal, and a second method that overrides an identity method associated with a superclass of the object by invoking the first method, the identity method for determining the identity of two objects. The object is immediately locked in response to the instantiating, so that the identity of the locked object is protected from threads that attempt to synchronize on the locked object.
-
Citations
44 Claims
-
1. A process for protecting object identity in an object-oriented programming language, comprising:
-
instantiating an object in memory; and
locking the object in response to the instantiating, wherein the identity of the locked object is protected from threads that attempt to synchronize on the locked object. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A process for protecting object identity in an object-oriented programming language, comprising:
-
instantiating an object in memory, the object including a first method that determines whether two object values are equal, and a second method that overrides an identity method associated with a superclass of the object by invoking the first method, the identity method for determining the identity of two objects; and
locking the object in response to the instantiating, wherein the identity of the locked object is protected from threads that attempt to synchronize on the locked object. - View Dependent Claims (8, 9, 10, 11)
-
-
12. A process for protecting object identity in an object-oriented programming language, comprising:
-
receiving code including an identity operator;
invoking an identity method associated with the identity operator;
performing a first method based on a determination that the identity method is associated with an object from a first class, the first method for determining whether two object values are substantially equal; and
performing an identity function based on a determination that the identity method is not associated with an object from the first class, the identity function for determining whether two object references refer to the same object. - View Dependent Claims (13, 14)
-
-
15. An object from a class for protecting object identity in an object-oriented programming language, comprising:
-
a first method that determines whether two object values are equal; and
a second method that overrides an identity method associated with a superclass of the object by invoking the first method, the identity method for determining the identity of two objects. - View Dependent Claims (16, 17, 18, 19)
-
-
20. A class hierarchy for protecting object identity in an object-oriented programming language, comprising:
-
a first class including a first identity method configured to determine identity of two objects;
a second class including a second identity method and an equals method for determining whether two object values are equal, the second identity method overriding the first identity method by invoking the equals method, wherein the second class is a direct abstract subclass of the first class; and
a third class that inherits the second identity method from the second class, wherein the third class is a subclass of the second class and an object from the third class is locked upon instantiation in memory so that the identity of the locked object is protected from threads that attempt to synchronize on the locked object. - View Dependent Claims (21, 22)
-
-
23. An object from a class for protecting object identity in an object-oriented programming language, comprising:
-
a first method that determines whether two object values are equal; and
a second method that overrides an identity method associated with a superclass of the object by invoking the first method, the identity method for determining the identity of two objects, wherein the object is locked upon instantiation so that threads fail when attempting to synchronize on the locked object. - View Dependent Claims (24, 25, 26)
-
-
27. An apparatus for protecting object identity in an object-oriented programming language, comprising:
-
means for instantiating an object in memory; and
means for locking the object in response to the instantiating, wherein the identity of the locked object is protected from threads that attempt to synchronize on the locked object. - View Dependent Claims (28, 29, 30, 31)
-
-
32. An apparatus for protecting object identity in an object-oriented programming language, comprising:
-
means for instantiating an object in memory, the object including a first method that determines whether two object values are equal, and a second method that overrides an identity method associated with a superclass of the object by invoking the first method, the identity method for determining the identity of two objects; and
means for locking the object in response to the instantiating, wherein the identity of the locked object is protected from threads that attempt to synchronize on the locked object. - View Dependent Claims (33, 34)
-
-
35. An apparatus for protecting object identity in an object-oriented programming language, comprising:
-
means for receiving code including an identity operator;
means for invoking an identity method associated with the identity operator;
means for performing a first method based on a determination that the identity method is associated with an object from a first class, the first method for determining whether two object values are substantially equal; and
means for performing an identity function based on a determination that the identity method is not associated with an object from the first class, the identity function for determining whether two object references refer to the same object. - View Dependent Claims (36, 37)
-
-
38. A computer-readable medium containing instructions for performing a process for protecting object identity in an object-oriented programming language, the process comprising:
-
instantiating an object in memory, the object including a first method that determines whether two object values are equal, and a second method that overrides an identity method from a superclass of the object by invoking the first method, the identity method for determining the identity of two objects; and
locking the object in response to the instantiating, wherein the identity of the locked object is protected from threads that attempt to synchronize on the locked object. - View Dependent Claims (39, 40, 41, 42)
-
-
43. An apparatus for protecting object identity in an object-oriented programming language, comprising:
-
a memory having a program that;
instantiates an object in memory, the object including a first method that determines whether two object values are equal, and a second method that overrides an identity method associated with a superclass of the object by invoking the first method, the identity method for determining the identity of two objects; and
locking the object in response to the instantiating, wherein the identity of the locked object is protected from threads that attempt to synchronize on the locked object; and
a processor that runs the program.
-
-
44. An apparatus for protecting object identity in an object-oriented programming language, comprising:
-
a memory having a program that;
invokes an identity method associated with an identity operator;
performs a first method based on a determination that the identity method is associated with an object from a first class, the first method for determining whether two object values are equal; and
performs an identity function based on a determination that the identity method is not associated with an object from the first class, the identity function for determining whether two object references refer to the same object; and
a processor that runs the program.
-
Specification