mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1054545 - Make helperThreadCount() always return 0 in more-deterministic builds. r=bhackett
--HG-- extra : rebase_source : 253a4e0ad39334ef4c49e06628d893553e8ab031
This commit is contained in:
parent
0148c8a71f
commit
110a00ecf0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user