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…