Closed
Bug 1280104
Opened 7 years ago
Closed 7 years ago
Use js::Mutex/js::ConditionVariable instead of PRLock/PRCondVar in js::Monitor
Categories
(Core :: JavaScript Engine, defect, P1)
Core
JavaScript Engine
Tracking
()
Tracking | Status | |
---|---|---|
firefox50 | --- | fixed |
People
(Reporter: fitzgen, Assigned: fitzgen)
References
Details
Attachments
(1 file, 1 obsolete file)
6.38 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•7 years ago
|
||
Attachment #8762739 -
Flags: review?(terrence)
Assignee | ||
Comment 2•7 years ago
|
||
Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=5b6d112b3c92
Assignee: nobody → nfitzgerald
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•7 years ago
|
||
Attachment #8762740 -
Flags: review?(terrence)
Assignee | ||
Updated•7 years ago
|
Attachment #8762739 -
Attachment is obsolete: true
Attachment #8762739 -
Flags: review?(terrence)
Assignee | ||
Comment 4•7 years ago
|
||
Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=9701df4719b5
Updated•7 years ago
|
Comment 5•7 years ago
|
||
Comment on attachment 8762740 [details] [diff] [review] Use js::Mutex/js::ConditionVariable instead of PRLock/PRCondVar in js::Monitor Review of attachment 8762740 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/vm/Monitor.cpp @@ -19,5 @@ > - if (!condVar_) > - return false; > - > - return true; > -} \o/
Attachment #8762740 -
Flags: review?(terrence) → review+
Updated•7 years ago
|
Iteration: 50.1 → 50.2
Updated•7 years ago
|
Whiteboard: [devtools-html]
Comment 6•7 years ago
|
||
Comment on attachment 8762740 [details] [diff] [review] Use js::Mutex/js::ConditionVariable instead of PRLock/PRCondVar in js::Monitor Review of attachment 8762740 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/threading/Mutex.h @@ +40,5 @@ > return *this; > } > > + bool operator==(const Mutex& rhs) { > + return platformData_ == rhs.platformData_; This will probably work in practice, but it doesn't seem correct to me; there's no guarantee that the *contents* of platformData_ uniquely identifies the lock (consider an implementation that uses a spinlock - platformData_ may just be counter). Wouldn't it be more obvious to do `return this == &rhs` or, if you insist, `return &platformData_ == &rhs.platformData_` ?
Comment 7•7 years ago
|
||
> This will probably work in practice, but it doesn't seem correct to me; there's no guarantee that the *contents* of platformData_ uniquely identifies the lock (consider an implementation that uses a spinlock - platformData_ may just be counter).
I was being dumb here - platformData_ is an array, so it already compares pointers and not contents.
Pushed by nfitzgerald@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/c9338313016a Use js::Mutex/js::ConditionVariable instead of PRLock/PRCondVar in js::Monitor; r=terrence
Comment 9•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c9338313016a
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox50:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
Updated•7 years ago
|
Whiteboard: [devtools-html]
You need to log in
before you can comment on or make changes to this bug.
Description
•