Bug 333078: XPCOM cycle collector, first performance-related followup patch.

Reorganizes collection throttling to coincide with existing JS_GC scheme.


git-svn-id: svn://10.0.0.236/trunk@217799 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
graydon%mozilla.com
2007-01-05 01:44:42 +00:00
parent 8ea6267f90
commit 75bfd7865e
3 changed files with 53 additions and 117 deletions

View File

@@ -41,7 +41,6 @@
#include "nsAutoPtr.h"
#include "prlog.h"
#include "nsThreadUtils.h"
#include "nsCycleCollector.h"
#ifdef PR_LOGGING
static PRLogModuleInfo *sLog = PR_NewLogModule("nsEventQueue");
@@ -93,10 +92,6 @@ nsEventQueue::GetEvent(PRBool mayWait, nsIRunnable **result)
}
}
if (NS_IsMainThread()) {
nsCycleCollector_collect();
}
return PR_TRUE;
}