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

Unified Diff: src/heap/page-parallel-job.h

Issue 2798333002: [heap] Fix page promotions tests (Closed)
Patch Set: Address comment Created 3 years, 8 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.h ('k') | test/cctest/heap/test-page-promotion.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/page-parallel-job.h
diff --git a/src/heap/page-parallel-job.h b/src/heap/page-parallel-job.h
index ad1d9b3e301fd224ef6b10fc868408494dfcc572..fffbbd2e4004feb27f42d1329e1dfe1a348b20cd 100644
--- a/src/heap/page-parallel-job.h
+++ b/src/heap/page-parallel-job.h
@@ -63,10 +63,10 @@ class PageParallelJob {
++num_items_;
}
- int NumberOfPages() { return num_items_; }
+ int NumberOfPages() const { return num_items_; }
// Returns the number of tasks that were spawned when running the job.
- int NumberOfTasks() { return num_tasks_; }
+ int NumberOfTasks() const { return num_tasks_; }
// Runs the given number of tasks in parallel and processes the previously
// added pages. This function blocks until all tasks finish.
« no previous file with comments | « src/heap/mark-compact.h ('k') | test/cctest/heap/test-page-promotion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698