Closed
Bug 454964
Opened 16 years ago
Closed 16 years ago
|make check|: test_0110_general.js reports leak 1
Categories
(Toolkit :: Application Update, defect)
Tracking
()
VERIFIED
FIXED
mozilla1.9.1b2
People
(Reporter: robert.strong.bugs, Assigned: robert.strong.bugs)
References
(Blocks 1 open bug)
Details
(Keywords: memory-leak)
Attachments
(1 file)
(deleted),
patch
|
mconnor
:
review+
beltzner
:
approval1.9.1b2+
|
Details | Diff | Splinter Review |
spinoff of Bug 449240 for app update
Assignee | ||
Comment 1•16 years ago
|
||
Per Bug 449240 comment #4 these two tests
have the same report with only 1 XPCWrappedNative and 1 XPCWrappedNativeProto
more.
Assignee | ||
Comment 2•16 years ago
|
||
It appears that this._update is leaked on the following line
http://mxr.mozilla.org/mozilla-central/source/toolkit/mozapps/update/src/nsUpdateService.js.in#2350
Comment 3•16 years ago
|
||
You could try to remove _update and other properties holding XPCOM objects from the prototypes and instead declare them in the component's constructor (add |this._update = null| in |Downloader(background))|. Putting them on the prototype keeps them alive until we unload the module, which is after the last cycle collection.
Assignee | ||
Comment 4•16 years ago
|
||
The patch in bug 324121 fixes the leak in test_0030_general.js
Depends on: 324121
Assignee | ||
Comment 5•16 years ago
|
||
test_0030_general.js no longer leaks after the checkin of bug 324121. Updating summary accordingly.
Summary: |make check|: test_0030_general.js and test_0110_general.js report leak 1 → |make check|: test_0110_general.js reports leak 1
Assignee | ||
Comment 6•16 years ago
|
||
Assignee: nobody → robert.bugzilla
Status: NEW → ASSIGNED
Attachment #346549 -
Flags: review?(mconnor)
Updated•16 years ago
|
Attachment #346549 -
Flags: review?(mconnor) → review+
Comment 7•16 years ago
|
||
[Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1b2pre) Gecko/20081106 Minefield/3.1b2pre] (home, optim default) (W2Ksp4)
(In reply to comment #5)
> test_0030_general.js no longer leaks after the checkin of bug 324121.
I confirm that this test doesn't leak (at all) anymore.
(In reply to comment #6)
> simple patch - rev1
I confirm that this patch fixes this test (whole) leak.
Updated•16 years ago
|
Attachment #346549 -
Flags: approval1.9.1b2?
Comment 8•16 years ago
|
||
Comment on attachment 346549 [details] [diff] [review]
simple patch - rev1
"approval1.9.1b2=?":
Trivial leak fix, no risk.
Comment 9•16 years ago
|
||
Comment on attachment 346549 [details] [diff] [review]
simple patch - rev1
a=beltzner
Attachment #346549 -
Flags: approval1.9.1b2? → approval1.9.1b2+
Comment 10•16 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1b2
Comment 11•16 years ago
|
||
[Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1b2pre) Gecko/20081114 Minefield/3.1b2pre] (home, optim default) (W2Ksp4)
V.Fixed
Status: RESOLVED → VERIFIED
Keywords: mlk
Updated•16 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•