Index: src/arm/simulator-arm.cc |
diff --git a/src/arm/simulator-arm.cc b/src/arm/simulator-arm.cc |
index 2f43121a01cbd1270b2480ac5a7e5ad080a10071..e3067bb19330e65329da006c7706fd5549061cc9 100644 |
--- a/src/arm/simulator-arm.cc |
+++ b/src/arm/simulator-arm.cc |
@@ -803,6 +803,8 @@ void Simulator::TearDown(base::CustomMatcherHashMap* i_cache, |
void* Simulator::RedirectExternalReference(Isolate* isolate, |
void* external_function, |
ExternalReference::Type type) { |
+ base::LockGuard<base::Mutex> lock_guard( |
+ isolate->simulator_redirection_mutex()); |
Redirection* redirection = Redirection::Get(isolate, external_function, type); |
return redirection->address_of_swi_instruction(); |
} |