Bug 1250134 - assert mJSRuntime when IsGrayJS() is true. r=mccr8

MozReview-Commit-ID: B5046aj61jx

--HG--
extra : rebase_source : 7ddc7be40030dec122643cae4d1042fe611efc2d
This commit is contained in:
Bogdan Postelnicu 2016-02-23 09:28:52 +02:00
parent 359d675f8f
commit e4d1a83ade

View File

@ -3283,6 +3283,7 @@ nsCycleCollector::CollectWhite()
PtrInfo* pinfo = etor.GetNext();
if (pinfo->mColor == white && pinfo->mParticipant) {
if (pinfo->IsGrayJS()) {
MOZ_ASSERT(mJSRuntime);
++numWhiteGCed;
JS::Zone* zone;
if (MOZ_UNLIKELY(pinfo->mParticipant == zoneParticipant)) {