Closed Bug 1312326 Opened 9 years ago Closed 9 years ago

Use StringFromIPCMessageType for the OOM annotation when enqueue message

Categories

(Core :: IPC, defect)

Unspecified
Windows
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla52
Tracking Status
firefox52 --- fixed

People

(Reporter: ting, Assigned: ting)

References

Details

Attachments

(1 file)

Thsi is a followup bug of bug 1309799.
Blocks: 1266517
No longer blocks: 1301022
Comment on attachment 8803777 [details] Bug 1312326 - Use StringFromIPCMessageType() instead for better crash annotation. https://reviewboard.mozilla.org/r/87930/#review86926 Steel review. ::: ipc/glue/MessageChannel.h:484 (Diff revision 1) > char* topName = nullptr; > char* curName = nullptr; These could be |const char*| ::: ipc/glue/MessageChannel.h:498 (Diff revision 1) > if (curCount > topCount) { > topName = curName; > topType = curType; > topCount = curCount; > } > - curName = const_cast<char*>(msg.name()); > + curName = const_cast<char*>(StringFromIPCMessageType(msg.type())); Then you don't need to const_cast as StringFromIPCMessageType should return |const char*|
Attachment #8803777 - Flags: review+
Pushed by tchou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2cf0a592901a Use StringFromIPCMessageType() instead for better crash annotation. r=kanru
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
Assignee: nobody → janus926
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: