Bandaid for bug 508128. r=waldo

This commit is contained in:
Robert Sayre 2009-08-05 15:30:04 -07:00
Родитель 5b023054b1
Коммит 49b25c7ce7
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -729,6 +729,11 @@ nsHttpServer.prototype =
// Fire a pending server-stopped notification if it's our responsibility.
if (!this._hasOpenConnections() && this._socketClosed)
this._notifyStopped();
// Bug 508125: Add a GC here else we'll use gigabytes of memory running
// mochitests. We can't rely on xpcshell doing an automated GC, as that
// would interfere with testing GC stuff...
if (typeof gc === "function")
gc();
},
/**