Bug 156757 - Consider more alternative locking protocols for WTF::Lock
Summary: Consider more alternative locking protocols for WTF::Lock
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-19 12:16 PDT by Filip Pizlo
Modified: 2016-04-19 12:16 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.