Index: src/gdb-jit.cc |
diff --git a/src/gdb-jit.cc b/src/gdb-jit.cc |
index 664673f3c97b8989b183bf67a5eca0ab73baed39..21cfd22334936626bf660f2e455cf518823e2bd3 100644 |
--- a/src/gdb-jit.cc |
+++ b/src/gdb-jit.cc |
@@ -2063,7 +2063,7 @@ void GDBJITInterface::AddCode(const char* name, |
CompilationInfo* info) { |
if (!FLAG_gdbjit) return; |
- ScopedLock lock(mutex.Pointer()); |
+ LockGuard<Mutex> lock_guard(mutex.Pointer()); |
DisallowHeapAllocation no_gc; |
HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); |
@@ -2149,7 +2149,7 @@ void GDBJITInterface::AddCode(GDBJITInterface::CodeTag tag, Code* code) { |
void GDBJITInterface::RemoveCode(Code* code) { |
if (!FLAG_gdbjit) return; |
- ScopedLock lock(mutex.Pointer()); |
+ LockGuard<Mutex> lock_guard(mutex.Pointer()); |
HashMap::Entry* e = GetEntries()->Lookup(code, |
HashForCodeObject(code), |
false); |
@@ -2187,7 +2187,7 @@ void GDBJITInterface::RemoveCodeRange(Address start, Address end) { |
void GDBJITInterface::RegisterDetailedLineInfo(Code* code, |
GDBJITLineInfo* line_info) { |
- ScopedLock lock(mutex.Pointer()); |
+ LockGuard<Mutex> lock_guard(mutex.Pointer()); |
ASSERT(!IsLineInfoTagged(line_info)); |
HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); |
ASSERT(e->value == NULL); |