Closed
Bug 1112828
Opened 10 years ago
Closed 9 years ago
Unify gfxCriticalError and gfxInfo->LogFailure()
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla38
People
(Reporter: jrmuizel, Assigned: milan)
References
Details
Attachments
(2 files, 6 obsolete files)
105.09 KB,
image/png
|
Details | |
14.88 KB,
patch
|
milan
:
review+
|
Details | Diff | Splinter Review |
LogFailure() has the advantage that its messages are exposed to about:support. Otherwise, these are mostly the same.
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8538779 -
Attachment description: Move functionality from CrashStatsLogForwarder (derived from LogForwarder) into a new class SpecialCircularBuffer (a base class for LogForwarder). → Part 1. Move functionality from CrashStatsLogForwarder (derived from LogForwarder) into a new class SpecialCircularBuffer (a base class for LogForwarder).
Attachment #8538779 -
Flags: review?(dvander)
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8538783 -
Flags: review?(jmuizelaar)
Updated•10 years ago
|
Attachment #8538779 -
Flags: review?(dvander) → review+
Reporter | ||
Comment 3•10 years ago
|
||
Comment on attachment 8538783 [details] [diff] [review] Part 2: Have GfxInfo::LogFailure use gfxCriticalLog and entries from gfxCriticalLog be available in about:support graphics section. r=jmuizelaar Review of attachment 8538783 [details] [diff] [review]: ----------------------------------------------------------------- Is gfxCriticalLog threadsafe?
Assignee | ||
Comment 4•10 years ago
|
||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #3) > ... > Is gfxCriticalLog threadsafe? Not really. There are a few aspect to it, the main ones being the std::vector that we use for circular buffer (not thread safe), and the nsDataHashtable we use for the crash reporter annotation table (not sure, but I don't think so), and then there is the copying into the char*** for the about:support (was thread safe, now is not.)
Assignee | ||
Updated•10 years ago
|
Attachment #8538783 -
Flags: review?(jmuizelaar)
Assignee | ||
Comment 5•10 years ago
|
||
I think the current version of GfxInfoBase "log failure related" code isn't thread safe - the LogFailure() method itself is, but GetFailures() method is looking at the data that LogFailure() is modifying, without locking.
Assignee | ||
Comment 6•10 years ago
|
||
Note this needs the patch from bug 1113695 to be thread safe.
Attachment #8538779 -
Attachment is obsolete: true
Attachment #8538783 -
Attachment is obsolete: true
Attachment #8539407 -
Flags: review?(jmuizelaar)
Assignee | ||
Comment 7•10 years ago
|
||
(In reply to Milan Sreckovic [:milan] from comment #1) > Created attachment 8538779 [details] [diff] [review] > Part 1. Move functionality from CrashStatsLogForwarder (derived from > LogForwarder) into a new class SpecialCircularBuffer (a base class for > LogForwarder). Skipped this change (for now), the thread safety trumped it and we can't use Mutex inside of gfx/2d, it's XPCOM...
Assignee | ||
Comment 8•10 years ago
|
||
Make the critical error not assert for LogFailure case.
Attachment #8539407 -
Attachment is obsolete: true
Attachment #8539407 -
Flags: review?(jmuizelaar)
Attachment #8539417 -
Flags: review?(jmuizelaar)
Assignee | ||
Comment 9•10 years ago
|
||
Change the formatting in about:support to group these entries.
Attachment #8539417 -
Attachment is obsolete: true
Attachment #8539417 -
Flags: review?(jmuizelaar)
Attachment #8539497 -
Flags: review?(jmuizelaar)
Assignee | ||
Comment 10•9 years ago
|
||
I'll attach what about:support looks like with this change.
Attachment #8539497 -
Attachment is obsolete: true
Attachment #8539497 -
Flags: review?(jmuizelaar)
Attachment #8544255 -
Flags: review?(jmuizelaar)
Assignee | ||
Comment 11•9 years ago
|
||
Reporter | ||
Updated•9 years ago
|
Attachment #8544255 -
Flags: review?(jmuizelaar) → review+
Assignee | ||
Comment 12•9 years ago
|
||
Rebased. https://treeherder.mozilla.org/#/jobs?repo=try&revision=64d2e116aa3b
Attachment #8544255 -
Attachment is obsolete: true
Attachment #8548582 -
Flags: review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 13•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/09c23f8dea86
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/09c23f8dea86
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in
before you can comment on or make changes to this bug.
Description
•