Index: runtime/vm/native_symbol_win.cc |
diff --git a/runtime/vm/native_symbol_win.cc b/runtime/vm/native_symbol_win.cc |
index 7e8350f552767cf79b70181e28cd2da153a74105..b44633f9786a1334dc4a99a1c47581f55e4900a2 100644 |
--- a/runtime/vm/native_symbol_win.cc |
+++ b/runtime/vm/native_symbol_win.cc |
@@ -32,7 +32,7 @@ void NativeSymbolResolver::InitOnce() { |
void NativeSymbolResolver::ShutdownOnce() { |
- ScopedMutex lock(lock_); |
+ MutexLocker lock(lock_); |
if (!running_) { |
return; |
} |
@@ -52,7 +52,7 @@ char* NativeSymbolResolver::LookupSymbolName(uintptr_t pc) { |
static const intptr_t kSymbolInfoSize = sizeof(SYMBOL_INFO); // NOLINT. |
static char buffer[kSymbolInfoSize + kMaxNameLength]; |
static char name_buffer[kMaxNameLength]; |
- ScopedMutex lock(lock_); |
+ MutexLocker lock(lock_); |
if (!running_) { |
return NULL; |
} |