Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(953)

Unified Diff: src/elements.cc

Issue 1034163002: Use atomic operation to read the length of a fixed array. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/factory.cc » ('j') | src/heap/heap.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/elements.cc
diff --git a/src/elements.cc b/src/elements.cc
index c523818d87646805ec149c76564d7cb2674b9eb4..8273f0b80d452dfc9fc3fe3a3823e090b59353a0 100644
--- a/src/elements.cc
+++ b/src/elements.cc
@@ -884,7 +884,7 @@ class FastElementsAccessor
if (length == 0) {
array->initialize_elements();
} else {
- isolate->heap()->RightTrimFixedArray<Heap::FROM_MUTATOR>(
+ isolate->heap()->RightTrimFixedArray<Heap::SWEEPING_STARTED>(
*backing_store, old_capacity - length);
}
} else {
« no previous file with comments | « no previous file | src/factory.cc » ('j') | src/heap/heap.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698