Fix broken build on Win32 due to r11010.

Review URL: https://chromiumcodereview.appspot.com/9666055

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11011 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 1f7d42ef
...@@ -1961,7 +1961,7 @@ class SamplerThread : public Thread { ...@@ -1961,7 +1961,7 @@ class SamplerThread : public Thread {
interval_(interval) {} interval_(interval) {}
static void AddActiveSampler(Sampler* sampler) { static void AddActiveSampler(Sampler* sampler) {
ScopedLock lock(mutex_); ScopedLock lock(mutex_.Pointer());
SamplerRegistry::AddActiveSampler(sampler); SamplerRegistry::AddActiveSampler(sampler);
if (instance_ == NULL) { if (instance_ == NULL) {
instance_ = new SamplerThread(sampler->interval()); instance_ = new SamplerThread(sampler->interval());
...@@ -1972,7 +1972,7 @@ class SamplerThread : public Thread { ...@@ -1972,7 +1972,7 @@ class SamplerThread : public Thread {
} }
static void RemoveActiveSampler(Sampler* sampler) { static void RemoveActiveSampler(Sampler* sampler) {
ScopedLock lock(mutex_); ScopedLock lock(mutex_.Pointer());
SamplerRegistry::RemoveActiveSampler(sampler); SamplerRegistry::RemoveActiveSampler(sampler);
if (SamplerRegistry::GetState() == SamplerRegistry::HAS_NO_SAMPLERS) { if (SamplerRegistry::GetState() == SamplerRegistry::HAS_NO_SAMPLERS) {
RuntimeProfiler::StopRuntimeProfilerThreadBeforeShutdown(instance_); RuntimeProfiler::StopRuntimeProfilerThreadBeforeShutdown(instance_);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment