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

Unified Diff: src/heap/spaces.cc

Issue 2646553002: Fix unused lambda captures. (Closed)
Patch Set: Add a workaround for MSVC++. Created 3 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/mark-compact.cc ('k') | test/unittests/heap/slot-set-unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/spaces.cc
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc
index 2e6ded546f45ecc33b2ff90b31d57d89d59685a3..e63f3ec00a61d8059e8745e97f72605b5b6a38fe 100644
--- a/src/heap/spaces.cc
+++ b/src/heap/spaces.cc
@@ -780,7 +780,7 @@ void Page::ResetFreeListStatistics() {
size_t Page::AvailableInFreeList() {
size_t sum = 0;
- ForAllFreeListCategories([this, &sum](FreeListCategory* category) {
+ ForAllFreeListCategories([&sum](FreeListCategory* category) {
sum += category->available();
});
return sum;
@@ -2636,7 +2636,7 @@ HeapObject* FreeList::Allocate(size_t size_in_bytes) {
size_t FreeList::EvictFreeListItems(Page* page) {
size_t sum = 0;
page->ForAllFreeListCategories(
- [this, &sum, page](FreeListCategory* category) {
+ [this, &sum](FreeListCategory* category) {
DCHECK_EQ(this, category->owner());
sum += category->available();
RemoveCategory(category);
« no previous file with comments | « src/heap/mark-compact.cc ('k') | test/unittests/heap/slot-set-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698