Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index 0e932cfadd37c01416263e0e78dc90336641b270..0209f95b85269ee90d4ec7f25f33a5415802b4cf 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -501,6 +501,7 @@ class JitLogger : public CodeEventLogger { |
int length); |
JitCodeEventHandler code_event_handler_; |
+ base::Mutex logger_mutex_; |
}; |
@@ -530,6 +531,7 @@ void JitLogger::LogRecordedBuffer(Code* code, |
void JitLogger::CodeMoveEvent(Address from, Address to) { |
+ base::LockGuard<base::Mutex> guard(&logger_mutex_); |
Code* from_code = Code::cast(HeapObject::FromAddress(from)); |
JitCodeEvent event; |