Closed
Bug 995880
Opened 11 years ago
Closed 11 years ago
VolatileBuffer non-heap memory use by images is not reported
Categories
(Core :: Graphics: ImageLib, defect)
Tracking
()
People
(Reporter: tnikkel, Assigned: tnikkel)
References
Details
(Whiteboard: [MemShrink])
Attachments
(1 file)
1.86 KB,
patch
|
mwu
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•11 years ago
|
||
Also, I noticed the else was removed in the same patch, was that intentional? I restored it in this patch.
Attachment #8405984 -
Flags: review?(mwu)
Assignee | ||
Updated•11 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Version: 29 Branch → 30 Branch
![]() |
||
Updated•11 years ago
|
Whiteboard: [MemShrink]
Comment 2•11 years ago
|
||
Comment on attachment 8405984 [details] [diff] [review]
patch
Review of attachment 8405984 [details] [diff] [review]:
-----------------------------------------------------------------
::: image/src/imgFrame.cpp
@@ +927,5 @@
> #endif
> #ifdef XP_MACOSX
> if (mQuartzSurface && aLocation == gfxMemoryLocation::IN_PROCESS_HEAP) {
> n += aMallocSizeOf(mQuartzSurface);
> + } else
This was in fact intentional. mQuartzSurface always wraps a mImageSurface and never really owns its data. We have to add the mImageSurface to count everything.
@@ +947,5 @@
> }
>
> + if (mVBuf && aLocation == gfxMemoryLocation::IN_PROCESS_NONHEAP) {
> + n += mVBuf->NonHeapSizeOfExcludingThis();
> + }
Thanks - I really can't remember why I didn't just do this in the first place..
Attachment #8405984 -
Flags: review?(mwu) → review+
Assignee | ||
Comment 3•11 years ago
|
||
(In reply to Michael Wu [:mwu] from comment #2)
> ::: image/src/imgFrame.cpp
> @@ +927,5 @@
> > #endif
> > #ifdef XP_MACOSX
> > if (mQuartzSurface && aLocation == gfxMemoryLocation::IN_PROCESS_HEAP) {
> > n += aMallocSizeOf(mQuartzSurface);
> > + } else
>
> This was in fact intentional. mQuartzSurface always wraps a mImageSurface
> and never really owns its data. We have to add the mImageSurface to count
> everything.
Okay, removed that bit.
Assignee | ||
Comment 4•11 years ago
|
||
Assignee | ||
Comment 5•11 years ago
|
||
We should get this everywhere bug 962670 is, which I think is 30 and 1.3T, otherwise doing any sort of work with image memory there will be severely hampered.
status-b2g-v1.3T:
--- → affected
status-firefox30:
--- → affected
Assignee | ||
Comment 6•11 years ago
|
||
Comment on attachment 8405984 [details] [diff] [review]
patch
[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 962670
User impact if declined: memory used by images will be dark matter in about:memory, ie we won't know what is using the memory used by images
Testing completed (on m-c, etc.): just landed m-c
Risk to taking this patch (and alternatives if risky): low
String or IDL/UUID changes made by this patch: none
Attachment #8405984 -
Flags: approval-mozilla-aurora?
Assignee | ||
Comment 7•11 years ago
|
||
I don't know how to deal with just 1.3T (and not 1.3).
Comment 8•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
Updated•11 years ago
|
Attachment #8405984 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 9•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/8fdfcb379dda
(In reply to Timothy Nikkel (:tn) from comment #7)
> I don't know how to deal with just 1.3T (and not 1.3).
Request 1.3T blocking status (done :)..) and then land away once it has it.
blocking-b2g: --- → 1.3T?
status-b2g-v1.4:
--- → fixed
status-b2g-v2.0:
--- → unaffected
status-firefox29:
--- → unaffected
status-firefox31:
--- → fixed
Updated•11 years ago
|
blocking-b2g: 1.3T? → 1.3T+
Assignee | ||
Updated•11 years ago
|
Comment 11•11 years ago
|
||
Comment 12•11 years ago
|
||
and backed out from 1.3t because I messed up the uplift:
https://hg.mozilla.org/releases/mozilla-b2g28_v1_3t/rev/0b141ffd3b27
Flags: needinfo?(fabrice)
Comment 13•11 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•