Bug 665044 - lift CC GC outside of the CCRunner mutex. r=bent

This commit is contained in:
Andrew McCreight 2011-06-21 15:06:42 -07:00
parent 7b148766d3
commit 4c9425df02

View File

@ -3414,6 +3414,8 @@ public:
{
NS_ASSERTION(NS_IsMainThread(), "Wrong thread!");
mCollector->GCIfNeeded(PR_FALSE);
MutexAutoLock autoLock(mLock);
if (!mRunning)
@ -3426,8 +3428,6 @@ public:
NS_ASSERTION(!mListener, "Should have cleared this already!");
mListener = aListener;
mCollector->GCIfNeeded(PR_FALSE);
mRequest.Notify();
mReply.Wait();