Index: src/d8-debug.cc |
diff --git a/src/d8-debug.cc b/src/d8-debug.cc |
index 9a72518f4cbe2b28493668fee394d795317d16d9..5499d20ec26cb936f0d24049a48fff6bb4444190 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::ScopedLock lock(&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::ScopedLock lock(&event_access_); |
ASSERT(head_ != NULL); |
RemoteDebuggerEvent* result = head_; |
head_ = head_->next(); |