Roger Pack <rogerpack2005 / gmail.com> wrote: > > * The locking strategy in VM changed. > > What's the new locking strategy? 1.9.2 used a simple mutex for the GVL, 1.9.3 uses a queueing GVL. The latter is more complex, but fairer and avoids starvation that is a problem with simple locks. Simple mutex locks are good for fine-grained use with minimal contention. The queueing GVL in 1.9.3 actually uses a (simple) mutex in a fine-grained manner, but condition variables to do longer sleeps/waiting/wakeups when there is GVL contention. -- Eric Wong