mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 11:38:16 +00:00
Bug 508128 - add gc() in httpd.js, reduces memory by 1GB in xpcshell.exe during mochitest run. r=jwalden
This commit is contained in:
parent
62ccca7b32
commit
66e77bdef2
@ -787,6 +787,10 @@ 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...
|
||||
gc();
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user