Bug 1346874 - Disable slow gray mark checks on Android, r=mccr8

MozReview-Commit-ID: GyycxPpNDQA
This commit is contained in:
Steve Fink
2017-03-16 15:41:36 -07:00
parent 882107cc50
commit d3665a8b69
2 changed files with 7 additions and 7 deletions

View File

@@ -1319,8 +1319,15 @@ CycleCollectedJSContext::CheckGrayBits() const
MOZ_ASSERT(mJSContext);
MOZ_ASSERT(!JS::IsIncrementalGCInProgress(mJSContext),
"Don't call CheckGrayBits during a GC.");
#ifndef ANDROID
// Bug 1346874 - The gray state check is expensive. Android tests are already
// slow enough that this check can easily push them over the threshold to a
// timeout.
MOZ_ASSERT(js::CheckGrayMarkingState(mJSContext));
MOZ_ASSERT(CheckWeakMappingGrayBitsTracer::Check(mJSContext));
#endif
}
bool