Bug 206444

Summary: [bmalloc] Replace some usage of UniqueLockHolder with cheaper LockHolder
Product: WebKit Reporter: Basuke Suzuki <basuke>
Component: bmallocAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ggaren
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Basuke Suzuki
Reported 2020-01-17 14:26:48 PST
unique_lock is required for conditional variable, but some function takes unique_lock with no meaning. Because std::lock_guard is much cheaper on runtime, they should use std::lock_guard instead.
Attachments
Basuke Suzuki
Comment 1 2020-01-17 14:29:18 PST
The differences of the code: https://godbolt.org/z/wjx3Wy
Note You need to log in before you can comment on or make changes to this bug.