One embodiment of the present invention provides a system that facilitates
biased locking of objects within an object-based computing system. The
system encounters a lock-acquisition operation while executing a current
thread, wherein the lock-acquisition operation attempts to acquire a lock
for an object. In response to the lock-acquisition operation, the system
examines synchronization information associated with the object, wherein
the process of examining the synchronization information does not involve
atomic operations. If the synchronization information indicates that the
lock is biasable and that the lock is biased toward the current thread,
the system allows the current thread to acquire the lock without updating
the synchronization information.