Looking at Thread.start, the bulk of the body of this function holds the global "slock" and I can't figure out why. Most or all of the calls inside this lock are either local operations or are already atomic. What actually needs to be made mutually exclusive here? This seems like an easy candidate for optimization.
Comment #1 by robert.schadek — 2024-12-07T13:34:29Z