Closed
Bug 43582
Opened 26 years ago
Closed 26 years ago
2 nsBoxLayout held past XPCOM shutdown in static nsCOMPtrs
Categories
(Core :: XUL, defect, P3)
Core
XUL
Tracking
()
RESOLVED
FIXED
mozilla0.9
People
(Reporter: dbaron, Assigned: dbaron)
References
Details
(Keywords: embed, memory-leak, topembed+, Whiteboard: [tind-mlk][nsbeta3-])
Attachments
(1 file)
|
10.93 KB,
patch
|
Details | Diff | Splinter Review |
The two "static nsCOMPtr<nsIBoxLayout> gInstance" in
layout/xul/base/src/ns{Sprocket,Stack}Layout.h are created before XPCOM is
initialized and destroyed after XPCOM shutdown. See:
http://lxr.mozilla.org/seamonkey/source/layout/xul/base/src/nsSprocketLayout.h#1
64
http://lxr.mozilla.org/seamonkey/source/layout/xul/base/src/nsStackLayout.h#53
This leaks 2 nsBoxLayout.
| Assignee | ||
Updated•26 years ago
|
Whiteboard: [tind-mlk]
Comment 2•26 years ago
|
||
mass-moving all evaughan non-nsbeta3+ bugs to 'Future' milestone
(per trudelle).
Target Milestone: --- → Future
Comment 3•26 years ago
|
||
Come on. This is a MEMORY LEAK. Lets try to fix it at least.
I'll look at it if you guys won't. :P
Comment 4•26 years ago
|
||
nsbeta3 -- this kind of thing gets in the way of seeing other leaks
Keywords: nsbeta3
Target Milestone: Future → M19
Comment 5•26 years ago
|
||
maybe these statics can be turned into raw iface pointers and released from some
service shutdown that can scope the lifetime of these ptrs?
Comment 6•26 years ago
|
||
Quite easy to fix. But its not beta3+ unfortunately. :(
Status: NEW → ASSIGNED
Comment 7•26 years ago
|
||
This will greatly help the embedding memory issues which fall under "major
client requirements".
Keywords: embed
Comment 8•26 years ago
|
||
What is the size/frequency of the leak?
Comment 9•26 years ago
|
||
It is a shutdown leak. I am not sure how much memory each nsBoxLayout hold on
to. This is low-hanging fruit and should be fixed so that we can get better
numbers on real leaks.
Comment 10•26 years ago
|
||
With 10 days to go, a one-time leak of unknown size at shutdown does not fit the
profile for bugs we should be spending any time on. We are not prioritizing
based on ease of fixing; if we were then we'd be fixing a huge number of bugs
that don't really matter. If this is a large leak that is not returned to the
system once we have shutdown, then I'd still like to hear the size, but
otherwise ->nsbeta3-/future.
Whiteboard: [tind-mlk] → [tind-mlk][nsbeta3-]
Target Milestone: M19 → Future
| Assignee | ||
Comment 11•26 years ago
|
||
| Assignee | ||
Comment 12•26 years ago
|
||
The patch above fixes this bug and bug 43588. (I have some other changes in
nsLayoutModule.cpp too.) I need to *add* to that patch makefile changes for
Windows and mac project changes.
evaughan - How does that patch look?
I'm taking this bug since I have a fix pending review.
Assignee: evaughan → dbaron
Status: ASSIGNED → NEW
| Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Target Milestone: Future → mozilla0.9
Comment 13•26 years ago
|
||
Looks good.
r=evaughan
Comment 14•26 years ago
|
||
How about adding MOZ_COUNT_CTOR/DTOR while you are at it?
/be
| Assignee | ||
Comment 15•26 years ago
|
||
brendan: Adding MOZ_COUNT_CTOR/MOZ_COUNT_DTOR to what? (I'm generally pretty
agressive about adding them when I see something that's not counted, but I don't
see anything uncounted here.)
Comment 16•26 years ago
|
||
+nsBulletinBoardLayout::nsBulletinBoardLayout()
+{
+}
Singleton, but still worth counting?
/be
| Assignee | ||
Comment 17•26 years ago
|
||
nsBulletinBoardLayout is a subclass of nsBoxLayout, which gets logging from
NS_IMPL_ADDREF and NS_IMPL_RELEASE. That's the only reason I knew this leak
existed.
Comment 18•26 years ago
|
||
Duh! Thanks.
sr=brendan@mozilla.org
| Assignee | ||
Comment 19•26 years ago
|
||
Fix checked in 2000-11-07 19:20 and 19:22 PDT.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in
before you can comment on or make changes to this bug.
Description
•