Commit 41d74f21 authored by ulan's avatar ulan Committed by Commit bot

Fix data race in Isolate::CheckDetachedContextsAfterGC

BUG=chromium:462908
LOG=NO

Review URL: https://codereview.chromium.org/1010713002

Cr-Commit-Position: refs/heads/master@{#27211}
parent 96f79568
......@@ -2608,8 +2608,8 @@ void Isolate::CheckDetachedContextsAfterGC() {
if (new_length == 0) {
heap()->set_detached_contexts(heap()->empty_fixed_array());
} else if (new_length < length) {
heap()->RightTrimFixedArray<Heap::FROM_GC>(*detached_contexts,
length - new_length);
heap()->RightTrimFixedArray<Heap::FROM_MUTATOR>(*detached_contexts,
length - new_length);
}
}
......
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