SIGN IN SIGN UP

gh-144513: Skip critical section locking during stop-the-world (gh-144524)

When the interpreter is in a stop-the-world pause, critical sections
don't need to acquire locks since no other threads can be running.
This avoids a potential deadlock where lock fairness hands off ownership
to a thread that has already suspended for stop-the-world.
S
Sam Gross committed
0fdf6a9a71f9b3c9adc0406542902e028431e7ca
Parent: 5bb3bbb
Committed by GitHub <noreply@github.com> on 2/6/2026, 3:14:08 PM