Open
Bug 1364342
Opened 7 years ago
Updated 7 years ago
mailnews/db/gloda/modules/indexer.js causes [System Principal] atom leak
Categories
(MailNews Core :: Backend, defect)
MailNews Core
Backend
Tracking
(Not tracked)
NEW
People
(Reporter: jorgk-bmo, Unassigned)
References
Details
Attachments
(1 file)
1.95 KB,
patch
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #1342745 +++ See bug 1342745 comment #21: I commented out this._idleService.addIdleObserver(this, this._indexIdleThresholdSecs); and this._idleService.removeIdleObserver(this, this._indexIdleThresholdSecs); and the leak is gone! To see the leak one needs to enable it in xpcom/ds/nsAtomTable.cpp as per the attached patch. For the record (for myself) from bug 1334771 comment #12, this is the command: $ obj-x86_64-pc-mingw32/dist/bin/xpcshell.exe -g obj-x86_64-pc-mingw32/dist/bin/ -a obj-x86_64-pc-mingw32/dist/bin/ -f mozilla/toolkit/mozapps/installer/precompile_cache.js -e 'precompile_startupcache("resource://gre/");'
Reporter | ||
Comment 1•7 years ago
|
||
Looking at bug 1342745 comment #22, the M-C test dom/presentation/tests/xpcshell/test_multicast_dns_device_provider.js already causes a leak of the "[System Principal]" atom.
Comment 2•7 years ago
|
||
My recommendation would be that this code register as a shutdown observer (since it's registering as an observer anyway) and when it gets a shutdown notification unregister as an idle observer.
You need to log in
before you can comment on or make changes to this bug.
Description
•