Method and apparatus for speculatively locking objects in an object-based system
AssigneeSun Microsystems, Inc.
InventorsBenedict A. Gomes, Lars Bak, David P. Stoutamire
Life of this patent
Estimating the term…
Loading patent…
AssigneeSun Microsystems, Inc.
InventorsBenedict A. Gomes, Lars Bak, David P. Stoutamire
Estimating the term…
Methods and apparatus for speculatively locking an object are disclosed. According to one aspect of the present invention, a method for acquiring use of an object using a current thread includes a determination of whether a first bit included in the object is set to indicate that the object is speculatively owned by a speculative owner thread. When the object is speculatively owned, the speculative owner thread is allowed to use the object without locking the object. The method also includes checking a stored identifier that is associated with the object and identifies the speculative owner thread, as well as determining whether the stored identifier identifies the current thread. When the stored identifier identifies the current thread, the current thread already has use of the object; i.e., the current thread is the speculative owner thread. Finally, the method includes locking the object using the speculative owner thread when it is determined that the stored identifier does not identify the current thread. In one embodiment, as for example when substantially all objects in a computing system are known to be suitable for speculative ownership, the stored identifier is checked before determining when the first bit associated with the object is set to indicate that the object is associated with the speculative owner thread.
A computer-implemented method for acquiring use of an object using a current thread, the computer-implemented method comprising:
A computer-implemented method for acquiring ownership of an object in a threaded system, the computer-implemented method comprising:
An object-based computing system which includes a speculative owner thread and an object, the speculative owner thread having an associated stack, the objectbased computing system comprising:
A computer program product for acquiring use of an object using a current thread, the computer program product comprising:
A threaded computer system comprising:
A computer program product allowing ownership of an object in a threaded system to be acquired, the computer program product comprising:
Dependencies are inferred from the claim text.