2 ms·
Nice paper. IIRC sometime later a further important optimization, known as biased locking[1], was added to Java locks to avoid, in the always uncontended case
by gpderetta 7y ago
Nice paper.
IIRC sometime later a further important optimization, known as biased locking[1], was added to Java locks to avoid, in the always uncontended case, the expensive CAS required to acquire the lock.
[1] https://blogs.oracle.com/dave/biased-locking-in-hotspot https://blogs.oracle.com/dave/biased-locking-in-hotspot