mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 14:25:49 +00:00
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:
parent
1514d9b219
commit
63bc9a3595
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user