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

Unified Diff: runtime/vm/pages.cc

Issue 1644223004: Fix typo in tranferring from regular add to Atomic increment. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fix-typo Created 4 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/pages.cc
diff --git a/runtime/vm/pages.cc b/runtime/vm/pages.cc
index 5dfa54cb1d0763e0032ae7ba4d249f88d8b6ddcb..efa0a4670378ae92e1d3567a05b86da52a4ff024 100644
--- a/runtime/vm/pages.cc
+++ b/runtime/vm/pages.cc
@@ -843,8 +843,7 @@ void PageSpace::MarkSweep(bool invoke_api_callbacks) {
bool collect_code = FLAG_collect_code && ShouldCollectCode();
GCMarker marker(heap_);
marker.MarkObjects(isolate, this, invoke_api_callbacks, collect_code);
- AtomicOperations::FetchAndIncrementBy(&(usage_.used_in_words),
- marker.marked_words());
+ usage_.used_in_words = marker.marked_words();
int64_t mid1 = OS::GetCurrentTimeMicros();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698