Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
runtime: merge workarounds to false deadlocks #40518
In #40368, I avoided false deadlocks from
Later, I discovered that @dvyukov fixed a nearly identical issue in #6070 by temporarily decrementing the number of idle locked M's, to make checkdead see an extra M. Slightly different approach, but same end result.
We should merge these two approaches back to one just to keep things simpler and easier to understand.