Bug 206444
| Summary: | [bmalloc] Replace some usage of UniqueLockHolder with cheaper LockHolder | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Basuke Suzuki <basuke> |
| Component: | bmalloc | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ggaren |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Basuke Suzuki
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Basuke Suzuki
The differences of the code:
https://godbolt.org/z/wjx3Wy