Index: src/libsampler/sampler.cc |
diff --git a/src/libsampler/sampler.cc b/src/libsampler/sampler.cc |
index f65498aa607b10078cc5ac0a6fb8c929ec6b47fd..7d63c6a7b76e9783ee4796b63b1ec508e7bc850d 100644 |
--- a/src/libsampler/sampler.cc |
+++ b/src/libsampler/sampler.cc |
@@ -602,7 +602,7 @@ void Sampler::Stop() { |
void Sampler::IncreaseProfilingDepth() { |
- base::NoBarrier_AtomicIncrement(&profiling_, 1); |
+ base::Relaxed_AtomicIncrement(&profiling_, 1); |
#if defined(USE_SIGNALS) |
SignalHandler::IncreaseSamplerCount(); |
#endif |
@@ -613,7 +613,7 @@ void Sampler::DecreaseProfilingDepth() { |
#if defined(USE_SIGNALS) |
SignalHandler::DecreaseSamplerCount(); |
#endif |
- base::NoBarrier_AtomicIncrement(&profiling_, -1); |
+ base::Relaxed_AtomicIncrement(&profiling_, -1); |
} |