Closed
Bug 1038966
Opened 10 years ago
Closed 10 years ago
Shmem should use refcounted pointer classes when creating SharedMemory
Categories
(Core :: IPC, defect)
Core
IPC
Tracking
()
RESOLVED
FIXED
mozilla34
People
(Reporter: mccr8, Assigned: mccr8)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
4.16 KB,
patch
|
bent.mozilla
:
review+
|
Details | Diff | Splinter Review |
4.64 KB,
patch
|
bent.mozilla
:
review+
|
Details | Diff | Splinter Review |
16.38 KB,
patch
|
bent.mozilla
:
review+
|
Details | Diff | Splinter Review |
This is the largest piece of work to prepare for bug 1028148. Shmem manipulates SharedMemory in a number of places, including in IPDL generated code. Rather than using nsRefPtr and friends, it uses a harrowing combination of nsAutoPtr and manual AddRefing and Releasing. These SharedMemory are actually owned by the mShmemMap field of the PFoo{Parent,Child} data structures, as far as I can tell. That is a Chromium IDMap, which I didn't want to mess with to make the ownership explicit there, so instead there is some usage of take() to explicitly move the ownership over.
Assignee | ||
Updated•10 years ago
|
Summary: Shmem should use nsRefPtrs to handle SharedMemory → Shmem should use refcounted pointer classes when creating SharedMemory
Assignee | ||
Comment 1•10 years ago
|
||
I'm going on PTO tomorrow, so I'm not going to bother requesting review, but here are the patches in case anybody is curious.
Assignee | ||
Comment 2•10 years ago
|
||
Rename these before changing the definition to reduce the noise in the next patch.
Assignee | ||
Comment 3•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8457431 -
Flags: review?(bent.mozilla)
Assignee | ||
Updated•10 years ago
|
Attachment #8457432 -
Flags: review?(bent.mozilla)
Assignee | ||
Updated•10 years ago
|
Attachment #8457433 -
Flags: review?(bent.mozilla)
Updated•10 years ago
|
Attachment #8457431 -
Flags: review?(bent.mozilla) → review+
Updated•10 years ago
|
Attachment #8457432 -
Flags: review?(bent.mozilla) → review+
Comment on attachment 8457433 [details] [diff] [review] part 3 - Shmem should use refcounted pointer classes when creating SharedMemory. Review of attachment 8457433 [details] [diff] [review]: ----------------------------------------------------------------- This all looked great. Thanks!
Attachment #8457433 -
Flags: review?(bent.mozilla) → review+
Assignee | ||
Comment 5•10 years ago
|
||
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/edf7cf2e8fd7 remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/833d3741961c remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/c8cee3a37f9c
Comment 6•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/edf7cf2e8fd7 https://hg.mozilla.org/mozilla-central/rev/833d3741961c https://hg.mozilla.org/mozilla-central/rev/c8cee3a37f9c
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in
before you can comment on or make changes to this bug.
Description
•