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

Unified Diff: src/heap/mark-compact.cc

Issue 1585843010: [heap] Make survival counters concurrent (atomic) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « src/heap/heap.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/mark-compact.cc
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc
index 65bfdd92d871a262e517452c8c14fe0989482d9b..0b331e33f30e59fb7b29e3d178fb049c0dc0d401 100644
--- a/src/heap/mark-compact.cc
+++ b/src/heap/mark-compact.cc
@@ -3100,13 +3100,12 @@ HashMap* MarkCompactCollector::EvacuateNewSpaceInParallel() {
USE(ok);
DCHECK(ok);
}
- heap_->IncrementPromotedObjectsSize(
- static_cast<int>(new_space_visitor.promoted_size()));
+ heap_->IncrementPromotedObjectsSize(new_space_visitor.promoted_size());
heap_->IncrementSemiSpaceCopiedObjectSize(
- static_cast<int>(new_space_visitor.semispace_copied_size()));
+ new_space_visitor.semispace_copied_size());
heap_->IncrementYoungSurvivorsCounter(
- static_cast<int>(new_space_visitor.promoted_size()) +
- static_cast<int>(new_space_visitor.semispace_copied_size()));
+ new_space_visitor.promoted_size() +
+ new_space_visitor.semispace_copied_size());
return local_pretenuring_feedback;
}
« no previous file with comments | « src/heap/heap.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698