Thread synchronization with lock inflation methods and apparatus for managed run-time environments
First Claim
Patent Images
1. A method to lock an object for a thread in a managed run-time environment comprising:
- determining a locking operation to perform on a lock corresponding to the object;
performing an optimistically balanced synchronization of the lock if the locking operation is not unbalanced; and
modifying a lock shape of the lock if the locking operation is unbalanced.
1 Assignment
0 Petitions
Accused Products
Abstract
Thread synchronization with lock inflation methods and apparatus for managed run-time environments are disclosed. An example method disclosed herein comprises determining a locking operation to perform on a lock corresponding to the object, performing an optimistically balanced synchronization of the lock if the locking operation is not unbalanced, and modifying a lock shape of the lock if the locking operation is unbalanced.
46 Citations
30 Claims
-
1. A method to lock an object for a thread in a managed run-time environment comprising:
-
determining a locking operation to perform on a lock corresponding to the object;
performing an optimistically balanced synchronization of the lock if the locking operation is not unbalanced; and
modifying a lock shape of the lock if the locking operation is unbalanced. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)
-
-
16. An article of manufacture storing machine readable instructions that, when executed, cause a machine to:
-
determine a locking operation to perform on a lock corresponding to the object;
perform an optimistically balanced synchronization of the lock if the locking operation is not unbalanced; and
modify a lock shape of the lock if the locking operation is unbalanced. - View Dependent Claims (17, 18, 19)
-
-
20. An apparatus to lock an object for a thread in a managed run-time environment comprising:
-
an optimistically balanced lock synchronization unit to perform an optimistically balanced synchronization of a lock corresponding to the object; and
a balanced synchronization state tracker/modifier to at least one of determine and modify a state of the optimistically balanced synchronization unit based on an occurrence of at least one of an unbalanced lock acquisition of the lock and an unbalanced lock release of the lock. - View Dependent Claims (21, 22, 23, 24, 25, 26, 27)
-
-
28. A system to lock an object for a thread in a managed run-time environment comprising:
-
a processor configured to;
determine a locking operation to perform on a lock corresponding to the object;
perform an optimistically balanced synchronization of the lock if the locking operation is not unbalanced; and
modify a lock shape of the lock if the locking operation is unbalanced; and
a memory to store at least one of a lock owner field of the lock, a previous lock owner of the lock and a lock shape flag corresponding to the lock shape of the lock. - View Dependent Claims (29, 30)
-
Specification