Closed
Bug 671280
Opened 14 years ago
Closed 13 years ago
Rename KIND_MAPPED to KIND_NONHEAP in nsIMemoryReporter
Categories
(Toolkit :: about:memory, defect)
Toolkit
about:memory
Tracking
()
RESOLVED
FIXED
mozilla8
People
(Reporter: justin.lebar+bug, Unassigned)
References
Details
(Keywords: dev-doc-complete, Whiteboard: [inbound])
Attachments
(1 file, 1 obsolete file)
19.88 KB,
patch
|
n.nethercote
:
review+
|
Details | Diff | Splinter Review |
See bug 664659 comment 32: I think KIND_NONHEAP is a better name than KIND_MAPPED.
Reporter | ||
Comment 1•14 years ago
|
||
Reporter | ||
Comment 2•14 years ago
|
||
Attachment #545677 -
Flags: review?(nnethercote)
Reporter | ||
Updated•14 years ago
|
Attachment #545676 -
Attachment is obsolete: true
Reporter | ||
Comment 3•14 years ago
|
||
In addition to looking through all the files which contained "KIND_MAPPED", I also looked through the results of
$ hg locate | xargs grep -l 'nsIMemoryReporter' | xargs grep -i mapped
to see if I'd missed passing references to "mapped". I didn't see any.
Comment 4•14 years ago
|
||
Comment on attachment 545677 [details] [diff] [review]
Patch v1
Thinking some more, I don't want this change, because it can break add-ons. For example, the MozMill Endurance tests have been broken by every nsIMemoryReporter change that has happened in the last couple of months. At least the previous changes introduced new functionality.
Also, not changing the names will also save Sheppy from having to update https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsIMemoryReporter again.
I'm sorry that I didn't think of these issues until after you wrote the patch.
Attachment #545677 -
Flags: review?(nnethercote) → review-
Reporter | ||
Comment 5•14 years ago
|
||
I'm very happy to update the wiki, if that's all it takes.
I'm not familiar with how addons work, but presumably it would break someone who did
MAPPED = Ci.nsIMemoryReporter.KIND_MAPPED;
? That'd be unfortunate.
I'd be happy if I could keep "nonheap" in my patch for bug 664659 -- it's inconsistent to use "nonheap", but seems incorrect to use "mapped" -- and modify the comment in nsIMemoryReporter for KIND_MAPPED to say that it's memory in the process which isn't on the heap.
What would you think of that?
Reporter | ||
Comment 6•14 years ago
|
||
> What would you think of that?
I'll post a patch with the comment change to bug 664659. WONTFIX'ing this.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
Comment 7•14 years ago
|
||
Comment on attachment 545677 [details] [diff] [review]
Patch v1
Review of attachment 545677 [details] [diff] [review]:
-----------------------------------------------------------------
Thinking some more: if you keep KIND_MAPPED around for backwards compatibility (along with a comment explaining why it's there) I'm ok with this patch. It'll still need the 'dev-doc-needed' keyword.
Attachment #545677 -
Flags: review- → review+
Reporter | ||
Comment 8•13 years ago
|
||
(In reply to comment #7)
> Thinking some more: if you keep KIND_MAPPED around for backwards
> compatibility (along with a comment explaining why it's there) I'm ok with
> this patch. It'll still need the 'dev-doc-needed' keyword.
Would we ever be able to get rid of KIND_MAPPED? The next time someone modifies nsIMemoryReporter? After N versions? If we leave it, I'd like it to have an explicitly finite lifetime.
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Reporter | ||
Comment 9•13 years ago
|
||
(In reply to comment #8)
> Would we ever be able to get rid of KIND_MAPPED? The next time someone
> modifies nsIMemoryReporter? After N versions? If we leave it, I'd like it
> to have an explicitly finite lifetime.
Nick, I presume you're watching this component so you don't need to be cc'ed on the bug to see this? But cc'ing you just in case.
Comment 10•13 years ago
|
||
I don't think removing KIND_MAPPED is important, but if you want to do it, after 3 versions is probably fine. I've CC'd the people who I know have written extensions that would be affected.
Reporter | ||
Comment 11•13 years ago
|
||
Whiteboard: [inbound]
Reporter | ||
Comment 12•13 years ago
|
||
Updated•13 years ago
|
Keywords: dev-doc-needed
Comment 13•13 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 14 years ago → 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla8
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•