Bug 1364288 - Fix thread races on global JS shell vars, r=jonco

MozReview-Commit-ID: HcHf96vJAPP

--HG--
extra : rebase_source : eff483c918d32ad9742722a7b13384c84e1b3c35
This commit is contained in:
Steve Fink 2017-05-11 20:00:13 -07:00
parent 1514d9b219
commit 63bc9a3595

View File

@ -6,6 +6,7 @@
#include "builtin/TestingFunctions.h"
#include "mozilla/Atomics.h"
#include "mozilla/FloatingPoint.h"
#include "mozilla/Move.h"
#include "mozilla/Sprintf.h"
@ -67,11 +68,11 @@ using mozilla::Move;
// If fuzzingSafe is set, remove functionality that could cause problems with
// fuzzers. Set this via the environment variable MOZ_FUZZING_SAFE.
static bool fuzzingSafe = false;
static mozilla::Atomic<bool> fuzzingSafe(false);
// If disableOOMFunctions is set, disable functionality that causes artificial
// OOM conditions.
static bool disableOOMFunctions = false;
static mozilla::Atomic<bool> disableOOMFunctions(false);
static bool
EnvVarIsDefined(const char* name)