Index: src/platform-linux.cc |
diff --git a/src/platform-linux.cc b/src/platform-linux.cc |
index 08f4495b53b389cf95de81d74c0f1e582d20ff5d..287d82037f916d5feea367d38329950ef2cc13c2 100644 |
--- a/src/platform-linux.cc |
+++ b/src/platform-linux.cc |
@@ -1093,7 +1093,7 @@ class SignalSender : public Thread { |
} |
static void AddActiveSampler(Sampler* sampler) { |
- ScopedLock lock(mutex_.Pointer()); |
+ ScopedLock lock(mutex_); |
SamplerRegistry::AddActiveSampler(sampler); |
if (instance_ == NULL) { |
// Start a thread that will send SIGPROF signal to VM threads, |
@@ -1106,7 +1106,7 @@ class SignalSender : public Thread { |
} |
static void RemoveActiveSampler(Sampler* sampler) { |
- ScopedLock lock(mutex_.Pointer()); |
+ ScopedLock lock(mutex_); |
SamplerRegistry::RemoveActiveSampler(sampler); |
if (SamplerRegistry::GetState() == SamplerRegistry::HAS_NO_SAMPLERS) { |
RuntimeProfiler::StopRuntimeProfilerThreadBeforeShutdown(instance_); |
@@ -1209,7 +1209,7 @@ class SignalSender : public Thread { |
RuntimeProfilerRateLimiter rate_limiter_; |
// Protects the process wide state below. |
- static LazyMutex mutex_; |
+ static Mutex* mutex_; |
static SignalSender* instance_; |
static bool signal_handler_installed_; |
static struct sigaction old_signal_handler_; |
@@ -1219,7 +1219,7 @@ class SignalSender : public Thread { |
}; |
-LazyMutex SignalSender::mutex_ = LAZY_MUTEX_INITIALIZER; |
+Mutex* SignalSender::mutex_ = OS::CreateMutex(); |
SignalSender* SignalSender::instance_ = NULL; |
struct sigaction SignalSender::old_signal_handler_; |
bool SignalSender::signal_handler_installed_ = false; |