Files
tubestation/mfbt/ChaosMode.cpp
Emilio Cobos Álvarez dc07165385 Bug 1948068 - Make ChaosMode::isActive cheaper when disabled. r=glandium,nika
This changes a bit the semantics of .enterChaosMode(), but only when
already combined with MOZ_CHAOSMODE, to respect the MOZ_CHAOSMODE
feature set, which seems in general like a sensible and more flexible
behavior?

Differential Revision: https://phabricator.services.mozilla.com/D238078
2025-02-18 18:35:29 +00:00

18 lines
549 B
C++

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "mozilla/ChaosMode.h"
namespace mozilla {
namespace detail {
Atomic<uint32_t, Relaxed> gChaosModeCounter(0);
ChaosFeature gChaosFeatures = ChaosFeature::Any;
} /* namespace detail */
} /* namespace mozilla */