Commit c5372a50 authored by Michael Starzinger's avatar Michael Starzinger Committed by Commit Bot

[simulator] Fix missing lock guard for I-cache flush.

R=clemensh@chromium.org
BUG=v8:7456

Change-Id: I5b7c151d375267a6a8a24c611b8a13fe38619656
Reviewed-on: https://chromium-review.googlesource.com/924036Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51369}
parent 52c75d94
......@@ -74,6 +74,7 @@ void* SimulatorBase::RedirectExternalReference(void* external_function,
Redirection::Redirection(void* external_function, ExternalReference::Type type)
: external_function_(external_function), type_(type), next_(nullptr) {
next_ = Simulator::redirection();
base::LockGuard<base::Mutex> lock_guard(Simulator::i_cache_mutex());
Simulator::SetRedirectInstruction(
reinterpret_cast<Instruction*>(address_of_instruction()));
Simulator::FlushICache(Simulator::i_cache(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment