On Thu, Jun 9, 2022 at 3:51 PM Elijah Stone <elro...@elronnd.net> wrote: > 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.
Biased locking was not universally bad -- but it became popularly useless after the language itself was changed. -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm