NEW206444
[bmalloc] Replace some usage of UniqueLockHolder with cheaper LockHolder
https://bugs.webkit.org/show_bug.cgi?id=206444
Summary [bmalloc] Replace some usage of UniqueLockHolder with cheaper LockHolder
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.