Bug 156757

Summary: Consider more alternative locking protocols for WTF::Lock
Product: WebKit Reporter: Filip Pizlo <fpizlo>
Component: Web Template FrameworkAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ggaren
Priority: P2    
Version: WebKit Nightly Build   
Hardware: All   
OS: All   

Description Filip Pizlo 2016-04-19 12:16:25 PDT
The current protocol errs on the side of fairness by having the slow path release the lock while the queue lock is held.  This reduces barging opportunities.

We should consider other futex-based protocols.  For example, it might be interesting to see how Linux's pthread_mutex_lock algorithm would work in WTF::Lock.