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

Unified Diff: src/incremental-marking.h

Issue 6756006: Exponentially increase incremental marking factor each 512 steps. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 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/incremental-marking.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/incremental-marking.h
diff --git a/src/incremental-marking.h b/src/incremental-marking.h
index 1b2c4ac1a232d372057332b2406738ab513a76b3..0e0619a54b3c60d509cd7e2707a04c8c89b7febb 100644
--- a/src/incremental-marking.h
+++ b/src/incremental-marking.h
@@ -69,7 +69,9 @@ class IncrementalMarking : public AllStatic {
static void MarkingComplete();
static const intptr_t kAllocatedThreshold = 1024;
- static const intptr_t kAllocationMarkingFactor = 8;
+ static const intptr_t kInitialAllocationMarkingFactor = 8;
+ static const intptr_t kAllocationMarkingFactorSpeedupInterval = 512;
+ static const intptr_t kAllocationMarkingFactorSpeedup = 2;
static void Step(intptr_t allocated);
@@ -218,6 +220,7 @@ class IncrementalMarking : public AllStatic {
static void ResetStepCounters() {
steps_count_ = 0;
steps_took_ = 0;
+ allocation_marking_factor_ = kInitialAllocationMarkingFactor;
}
@@ -227,6 +230,7 @@ class IncrementalMarking : public AllStatic {
static int steps_count_;
static double steps_took_;
+ static intptr_t allocation_marking_factor_;
};
} } // namespace v8::internal
« no previous file with comments | « no previous file | src/incremental-marking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698