Index: src/d8-debug.cc |
diff --git a/src/d8-debug.cc b/src/d8-debug.cc |
index 9a72518f4cbe2b28493668fee394d795317d16d9..3adeb718004aa5d8587204b853d21c42c6e80375 100644 |
--- a/src/d8-debug.cc |
+++ b/src/d8-debug.cc |
@@ -248,7 +248,7 @@ void RemoteDebugger::ConnectionClosed() { |
void RemoteDebugger::AddEvent(RemoteDebuggerEvent* event) { |
- i::ScopedLock lock(event_access_); |
+ i::LockGuard<i::Mutex> lock_guard(&event_access_); |
if (head_ == NULL) { |
ASSERT(tail_ == NULL); |
head_ = event; |
@@ -263,7 +263,7 @@ void RemoteDebugger::AddEvent(RemoteDebuggerEvent* event) { |
RemoteDebuggerEvent* RemoteDebugger::GetEvent() { |
- i::ScopedLock lock(event_access_); |
+ i::LockGuard<i::Mutex> lock_guard(&event_access_); |
ASSERT(head_ != NULL); |
RemoteDebuggerEvent* result = head_; |
head_ = head_->next(); |