Also the stuff has not changed for the past... 14y or so. It's pretty old news.
Also the stuff has not changed for the past... 14y or so. It's pretty old news.
I haven't heard of this, and don't understand what you said well enough to google it myself.
Edit: Found a copy[1] of the early Cliff Click's blog... For whatever reasons google doesn't have it listed (so I typed the url. cliffc.org is empty as well.. Other than that Java's hotspot source is available too.
[0]: https://blogs.oracle.com/dave/biased-locking-in-hotspot
So am I correctly understanding this as:
Using identityHashCode() does not prevent locks from working, it merely prevents the performance optimization of biased locking (which Java 15 disables by default anyway)?
Lack of biased locking could be quite detrimental to CHM wide use. OTOH it'd mean a smaller header/memory footprint, which is nice.
If you are interested in the Java internals Cliff Click's (who is the original hotspot architect) insights of a decade ago will worth your while.