Bug 1054545 - Make helperThreadCount() always return 0 in more-deterministic builds. r=bhackett

--HG--
extra : rebase_source : 253a4e0ad39334ef4c49e06628d893553e8ab031
This commit is contained in:
Jan de Mooij 2014-09-04 10:55:30 +02:00
parent 0148c8a71f
commit 110a00ecf0

View File

@ -1595,10 +1595,15 @@ static bool
HelperThreadCount(JSContext *cx, unsigned argc, jsval *vp)
{
CallArgs args = CallArgsFromVp(argc, vp);
#ifdef JS_MORE_DETERMINISTIC
// Always return 0 to get consistent output with and without --no-threads.
args.rval().setInt32(0);
#else
if (CanUseExtraThreads())
args.rval().setInt32(HelperThreadState().threadCount);
else
args.rval().setInt32(0);
#endif
return true;
}