Closed
Bug 1290156
Opened 7 years ago
Closed 7 years ago
Remove `lockOwner`s since they are now redundant
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla51
Tracking | Status | |
---|---|---|
firefox51 | --- | fixed |
People
(Reporter: fitzgen, Assigned: fitzgen)
References
Details
Attachments
(3 files)
8.86 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
63.90 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
3.10 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
We do all this bookkeeping about who owns what lock, but that is all redundant now that we use `PTHREAD_MUTEX_ERRORCHECK` with `js::Mutex` in `DEBUG` builds.
Assignee | ||
Comment 1•7 years ago
|
||
The checks that the `lockOwner` member was used for are redundant now that `js::Mutex` uses `PTHREAD_MUTEX_ERRORCHECK` in `DEBUG` builds.
Attachment #8775619 -
Flags: review?(terrence)
Assignee | ||
Comment 2•7 years ago
|
||
The checks that the `lockOwner` member was used for are now redundant given that `js::Mutex` uses `PTHREAD_MUTEX_ERRORCHECK` in `DEBUG` builds. In methods where we asserted `isLocked()`, we now pass in an `AutoLockHelperThreadState` reference for compile-time proof of lock holding. This is mostly a mechanical change.
Attachment #8775620 -
Flags: review?(terrence)
Assignee | ||
Comment 3•7 years ago
|
||
The checks that the `lockOwner` member was used for are redundant now that `js::Mutex` uses `PTHREAD_MUTEX_ERRORCHECK` in `DEBUG` builds.
Attachment #8775621 -
Flags: review?(terrence)
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Comment 4•7 years ago
|
||
Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=a3e6bc7af944
Updated•7 years ago
|
Attachment #8775619 -
Flags: review?(terrence) → review+
Comment 5•7 years ago
|
||
Comment on attachment 8775620 [details] [diff] [review] Remove the DEBUG-only lockOwner member from GlobalHelperThreadState Review of attachment 8775620 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/vm/Runtime.cpp @@ +908,3 @@ > MOZ_FALLTHROUGH; > case GCLock: > break; It would be nice to find a way to assert ordering of these locks statically. Maybe AutoLockGC should take the HelperThreadLock in its constructor?
Attachment #8775620 -
Flags: review?(terrence) → review+
Updated•7 years ago
|
Attachment #8775621 -
Flags: review?(terrence) → review+
Pushed by nfitzgerald@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/573529c879ad Remove the GCRuntime DEBUG-only lockOwner field; r=terrence https://hg.mozilla.org/integration/mozilla-inbound/rev/1bc0a14de00a Remove the DEBUG-only lockOwner member from GlobalHelperThreadState; r=terrence https://hg.mozilla.org/integration/mozilla-inbound/rev/41096329fbed Remove the DEBUG-only lockOwner member from vixl::Simulator; r=terrence
Comment 7•7 years ago
|
||
backout bugherder landing |
This or something else from the push appears to have turned 10.10 debug cpp tests permared: https://treeherder.mozilla.org/logviewer.html#?job_id=33028238&repo=mozilla-inbound https://hg.mozilla.org/integration/mozilla-inbound/rev/8786fe9a1993
Flags: needinfo?(nfitzgerald)
Assignee | ||
Updated•7 years ago
|
Flags: needinfo?(nfitzgerald)
Pushed by nfitzgerald@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/4a261bbbe735 Remove the GCRuntime DEBUG-only lockOwner field; r=terrence https://hg.mozilla.org/integration/mozilla-inbound/rev/a9bc531fdc75 Remove the DEBUG-only lockOwner member from GlobalHelperThreadState; r=terrence https://hg.mozilla.org/integration/mozilla-inbound/rev/3335ffe05307 Remove the DEBUG-only lockOwner member from vixl::Simulator; r=terrence
Comment 9•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4a261bbbe735 https://hg.mozilla.org/mozilla-central/rev/a9bc531fdc75 https://hg.mozilla.org/mozilla-central/rev/3335ffe05307
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox51:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
You need to log in
before you can comment on or make changes to this bug.
Description
•