Closed
Bug 2098185
Opened 2 days ago
Closed 1 day ago
Futex ConditionVariableImpl makes a wake-up syscall on every notify, even when nobody is waiting
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: denispal, Assigned: denispal)
References
(Blocks 1 open bug)
Details
Attachments
(1 external file)
ConditionVariableImpl::notify_one() and notify_all() always call Futex::wake(), even when no thread is waiting. glibc's pthread_cond_signal / pthread_cond_broadcast return early in that case. On Linux FUTEX_WAKE always enters the kernel, so this causes most of the SP3 regression from bug 2041608. It's most noticeable on the IPC thread.
Profiles (parent IPC I/O thread):
| Assignee | ||
Comment 1•2 days ago
|
||
Track waiters so notify_one() and notify_all() only call Futex::wake() when someone is waiting.
Pushed by dpalmeiro@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/9036cd824b2e
https://hg.mozilla.org/integration/autoland/rev/cd110a1f81a4
Skip the futex wake syscall in ConditionVariableImpl when nobody is waiting. r=emilio
Status: NEW → RESOLVED
Closed: 1 day ago
status-firefox163:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•