Why synchronized Got Fast: The Rise and Removal of Biased Locking

Why synchronized Got Fast: The Rise and Removal of Biased Locking
For years, Java developers heard the same advice: “synchronized is slow, so avoid it.” Then, around Java 6, that advice quietly stopped being true. A hidden HotSpot optimization called biased locking was a big reason why. Later, the same optimization was switched off and finally deleted. In this article, we follow that story, confirm the …

Take Your Experience to the Next Level

New

Download our mobile app for a faster and better experience.

Comments

0
U

Join the discussion

Sign in to leave a comment

0:000:00