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

Unified Diff: src/heap.h

Issue 96783002: Allocation site pretenuring. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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/flag-definitions.h ('k') | src/heap.cc » ('j') | src/heap.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap.h
diff --git a/src/heap.h b/src/heap.h
index 1c8e0e16e60405f0c03b08b971057b51fa7a9d45..fa3b3bd334b18d7551c9972e3ff7fbda42bc2a11 100644
--- a/src/heap.h
+++ b/src/heap.h
@@ -2186,6 +2186,14 @@ class Heap {
void ProcessArrayBuffers(WeakObjectRetainer* retainer, bool record_slots);
void ProcessAllocationSites(WeakObjectRetainer* retainer, bool record_slots);
+ // Deopts all dependent code of the currently registered allocation sites and
+ // sets the given pretenuring decisions to undecided.
+ void ClearAllAllocationSitesDependentCode();
+
+ // Evaluates local pretenuring and calls ClearAllAllocationSitesDependentCode
+ // if too many objects died in the old generation.
+ void EvaluateLocalPretenuring(uint64_t size_of_objects_before_gc);
+
// Called on heap tear-down.
void TearDownArrayBuffers();
@@ -2229,6 +2237,8 @@ class Heap {
static const int kYoungSurvivalRateLowThreshold = 10;
static const int kYoungSurvivalRateAllowedDeviation = 15;
+ static const int kOldSurvivalRateLowThreshold = 20;
+
int young_survivors_after_last_gc_;
int high_survival_rate_period_length_;
int low_survival_rate_period_length_;
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap.cc » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698