Closed
Bug 1122322
Opened 9 years ago
Closed 9 years ago
Fix worker memory reporter
Categories
(Core :: DOM: Workers, defect)
Core
DOM: Workers
Tracking
()
RESOLVED
FIXED
mozilla38
Tracking | Status | |
---|---|---|
firefox35 | --- | wontfix |
firefox36 | --- | fixed |
firefox37 | --- | fixed |
firefox38 | --- | fixed |
firefox-esr31 | --- | unaffected |
People
(Reporter: n.nethercote, Assigned: n.nethercote)
References
Details
Attachments
(2 files, 1 obsolete file)
2.03 KB,
patch
|
bent.mozilla
:
review+
Sylvestre
:
approval-mozilla-aurora+
Sylvestre
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
4.72 KB,
patch
|
n.nethercote
:
review+
Sylvestre
:
approval-mozilla-aurora+
Sylvestre
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
Bug 1103958 comment 42 has the explanation.
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → n.nethercote
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8550065 -
Flags: review?(bent.mozilla)
Comment on attachment 8550065 [details] [diff] [review] Fix crash in worker memory reporter Review of attachment 8550065 [details] [diff] [review]: ----------------------------------------------------------------- As long as this still maintains the anonymity of the reports that you're aiming for this seems fine to me.
Attachment #8550065 -
Flags: review?(bent.mozilla) → review+
Assignee | ||
Comment 3•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/c7ff0dd7ad8a
Comment 4•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c7ff0dd7ad8a
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
Let's please get this backported as far as possible.
status-firefox35:
--- → affected
status-firefox36:
--- → affected
status-firefox37:
--- → affected
status-firefox38:
--- → fixed
Updated•9 years ago
|
status-firefox-esr31:
--- → unaffected
Assignee | ||
Comment 6•9 years ago
|
||
Comment on attachment 8550065 [details] [diff] [review] Fix crash in worker memory reporter Approval Request Comment [Feature/regressing bug #]: Bug 1010064 (shipped in FF33) [User impact if declined]: Possible crashes when getting memory reports (e.g. viewing about:memory) [Describe test coverage new/current, TBPL]: No automated tests, alas. [Risks and why]: Very low. The patch just moves a null-check (and a small amount of associated code) earlier in order to avoid a null dereference. [String/UUID change made/needed]: None.
Attachment #8550065 -
Flags: approval-mozilla-beta?
Attachment #8550065 -
Flags: approval-mozilla-aurora?
Updated•9 years ago
|
Attachment #8550065 -
Flags: approval-mozilla-beta?
Attachment #8550065 -
Flags: approval-mozilla-beta+
Attachment #8550065 -
Flags: approval-mozilla-aurora?
Attachment #8550065 -
Flags: approval-mozilla-aurora+
Comment 7•9 years ago
|
||
Wonfix for 35, since we have this bug since 33, we can wait one more cycle.
Comment 8•9 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/1b311ea59722 https://hg.mozilla.org/releases/mozilla-beta/rev/c5dfa7d081f4
Assignee | ||
Comment 9•9 years ago
|
||
Thank you for the landings, RyanVM.
Assignee | ||
Comment 10•9 years ago
|
||
Many apologies -- I botched the previous patch. Moving the null check earlier was good, but moving the BlockAndCollectRuntimeStats() call earlier was bad, because it depends on the |path| assignment. This was causing worker measurements to not show up under "Explicit Allocations" as they should have. I've added some assertions that would have caught this in debug builds, and I filed bug 1124469 to improve the testing of worker memory reporters. This will need backporting to Aurora and Beta.
Attachment #8552748 -
Flags: review?(bent.mozilla)
Comment on attachment 8552748 [details] [diff] [review] (follow-up) - Fix busted paths in worker memory reporter Review of attachment 8552748 [details] [diff] [review]: ----------------------------------------------------------------- This looks fine, one suggestion: ::: dom/workers/WorkerPrivate.cpp @@ +1733,5 @@ > +static bool > +StartsWithExplicit(nsACString& s) > +{ > + const char* e = "explicit/"; > + return Substring(s, 0, strlen(e)).Equals(e); How about just: return StringBeginsWith(s, NS_LITERAL_CSTRING("explicit/")); Then you don't need |e|
Attachment #8552748 -
Flags: review?(bent.mozilla) → review+
Assignee | ||
Comment 12•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/5a0964e0f180
Assignee | ||
Comment 13•9 years ago
|
||
This is the version that landed. It'll need uplifting.
Assignee | ||
Updated•9 years ago
|
Attachment #8552748 -
Attachment is obsolete: true
Assignee | ||
Comment 14•9 years ago
|
||
Comment on attachment 8553557 [details] [diff] [review] (follow-up) - Fix busted paths in worker memory reporter Review of attachment 8553557 [details] [diff] [review]: ----------------------------------------------------------------- Carrying over the r+.
Attachment #8553557 -
Flags: review+
Assignee | ||
Comment 15•9 years ago
|
||
Comment on attachment 8553557 [details] [diff] [review] (follow-up) - Fix busted paths in worker memory reporter Approval Request Comment [Feature/regressing bug #]: The previous patch in this bug had a defect. Sorry! [User impact if declined]: Incorrect measurements of workers in about:memory. [Describe test coverage new/current, TreeHerder]: I did a better job of testing locally this time, plus I added assertions that would have caught the original problem immediately. Bug 1124469 is open for improving test coverage. [Risks and why]: Very low. [String/UUID change made/needed]: None.
Attachment #8553557 -
Flags: approval-mozilla-beta?
Attachment #8553557 -
Flags: approval-mozilla-aurora?
Comment 17•9 years ago
|
||
Reset of the flags to make sure Ryan sees it
Updated•9 years ago
|
Attachment #8553557 -
Flags: approval-mozilla-beta?
Attachment #8553557 -
Flags: approval-mozilla-beta+
Attachment #8553557 -
Flags: approval-mozilla-aurora?
Attachment #8553557 -
Flags: approval-mozilla-aurora+
Comment 18•9 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/6f8463429d94 https://hg.mozilla.org/releases/mozilla-beta/rev/a99eabe5e8ea
You need to log in
before you can comment on or make changes to this bug.
Description
•