Closed
Bug 1123533
Opened 9 years ago
Closed 9 years ago
Clarify thread handling in NS_StackWalk() on Windows
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla38
People
(Reporter: n.nethercote, Assigned: n.nethercote)
Details
Attachments
(1 file)
5.06 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
- The way NS_StackWalk() sets up |targetThread| and |data.walkCallingThread| is hard to read. - The name |shouldBeThreadSafe| is unclear -- for a long time I thought it meant "we are thread-safe, so we can print" and I thought it was named incorrectly. But now I see it actually means the opposite, i.e. "we need to be thread-safe, so we can't print". So |needToBeThreadSafe| would be clearer... - ...but |shouldBeThreadSafe| shouldn't be used anyway, because |data.walkCallingThread| is better -- it correctly handles the case where |aThread| is the current thread -- and it's what WalkStackMain64() uses.
Assignee | ||
Comment 1•9 years ago
|
||
This patch fixes these problems.
Attachment #8551581 -
Flags: review?(ehsan)
Updated•9 years ago
|
Attachment #8551581 -
Flags: review?(ehsan) → review+
Assignee | ||
Comment 2•9 years ago
|
||
Try looks good: https://treeherder.mozilla.org/#/jobs?repo=try&revision=600a84650c15
Assignee | ||
Comment 3•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/9ecca6f1d8b6
Comment 4•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/9ecca6f1d8b6
Status: ASSIGNED → 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
•