mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 13:56:29 +00:00
Bug 373462, try to fix possible tdhtml regression
This commit is contained in:
parent
d7267dc63d
commit
aeb85a8528
@ -3270,22 +3270,12 @@ nsJSContext::CC()
|
||||
#endif
|
||||
// nsCycleCollector_collect() will run a ::JS_GC() indirectly, so
|
||||
// we do not explicitly call ::JS_GC() here.
|
||||
PRBool firstRun = nsCycleCollector_collect();
|
||||
sPreviousCCDidCollect = nsCycleCollector_collect();
|
||||
#ifdef DEBUG_smaug
|
||||
printf("(1) %s\n", firstRun ?
|
||||
printf("(1) %s\n", sPreviousCCDidCollect ?
|
||||
"Cycle collector did collect nodes" :
|
||||
"Cycle collector did not collect nodes");
|
||||
#endif
|
||||
PRBool secondRun = PR_FALSE;
|
||||
if (!sUserIsActive) {
|
||||
secondRun = nsCycleCollector_collect();
|
||||
#ifdef DEBUG_smaug
|
||||
printf("(2) %s\n", secondRun ?
|
||||
"Cycle collector did collect nodes" :
|
||||
"Cycle collector did not collect nodes");
|
||||
#endif
|
||||
}
|
||||
sPreviousCCDidCollect = firstRun || secondRun;
|
||||
}
|
||||
|
||||
//static
|
||||
|
Loading…
x
Reference in New Issue
Block a user