On Thu, 9 Jun 2022, Raul Miller wrote:

this could mean that the locale has been marked as "owned" by a specific thread with a fast path for access within that thread, and with a slow path for development access from outside that thread (this would also require cache flushes and so on so would at least temporarily slow down "in thread" access).

This is called 'biased locking', and java used to do it. It was a bad idea, and they stopped. We don't need such tricks to make concurrent hash tables fast.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to