Index: src/heap/heap.h |
diff --git a/src/heap/heap.h b/src/heap/heap.h |
index 6c679e6e733cafc82d38dd25f96870b67bb93136..26c78ffd8162afdab3889d61397c4b550b5b6aa3 100644 |
--- a/src/heap/heap.h |
+++ b/src/heap/heap.h |
@@ -1383,10 +1383,6 @@ class Heap { |
return PromotedSpaceSizeOfObjects() - old_generation_size_at_last_gc_; |
} |
- // Record the fact that we generated some optimized code since the last GC |
- // which will pretenure some previously unpretenured allocation. |
- void RecordDeoptForPretenuring() { gathering_lifetime_feedback_ = 2; } |
- |
// Update GC statistics that are tracked on the Heap. |
void UpdateCumulativeGCStatistics(double duration, double spent_in_mutator, |
double marking_time); |
@@ -2178,23 +2174,13 @@ class Heap { |
void UpdateSurvivalStatistics(int start_new_space_size); |
- enum SurvivalRateTrend { INCREASING, STABLE, DECREASING, FLUCTUATING }; |
- |
static const int kYoungSurvivalRateHighThreshold = 90; |
- static const int kYoungSurvivalRateLowThreshold = 10; |
static const int kYoungSurvivalRateAllowedDeviation = 15; |
static const int kOldSurvivalRateLowThreshold = 10; |
- bool new_space_high_promotion_mode_active_; |
- // If this is non-zero, then there is hope yet that the optimized code we |
- // have generated will solve our high promotion rate problems, so we don't |
- // need to go into high promotion mode just yet. |
- int gathering_lifetime_feedback_; |
int high_survival_rate_period_length_; |
intptr_t promoted_objects_size_; |
- int low_survival_rate_period_length_; |
- double survival_rate_; |
double promotion_ratio_; |
double promotion_rate_; |
intptr_t semi_space_copied_object_size_; |
@@ -2210,59 +2196,12 @@ class Heap { |
// of the allocation site. |
unsigned int maximum_size_scavenges_; |
- SurvivalRateTrend previous_survival_rate_trend_; |
- SurvivalRateTrend survival_rate_trend_; |
- |
- void set_survival_rate_trend(SurvivalRateTrend survival_rate_trend) { |
- DCHECK(survival_rate_trend != FLUCTUATING); |
- previous_survival_rate_trend_ = survival_rate_trend_; |
- survival_rate_trend_ = survival_rate_trend; |
- } |
- |
- SurvivalRateTrend survival_rate_trend() { |
- if (survival_rate_trend_ == STABLE) { |
- return STABLE; |
- } else if (previous_survival_rate_trend_ == STABLE) { |
- return survival_rate_trend_; |
- } else if (survival_rate_trend_ != previous_survival_rate_trend_) { |
- return FLUCTUATING; |
- } else { |
- return survival_rate_trend_; |
- } |
- } |
- |
- bool IsStableOrIncreasingSurvivalTrend() { |
- switch (survival_rate_trend()) { |
- case STABLE: |
- case INCREASING: |
- return true; |
- default: |
- return false; |
- } |
- } |
- |
- bool IsStableOrDecreasingSurvivalTrend() { |
- switch (survival_rate_trend()) { |
- case STABLE: |
- case DECREASING: |
- return true; |
- default: |
- return false; |
- } |
- } |
- |
- bool IsIncreasingSurvivalTrend() { |
- return survival_rate_trend() == INCREASING; |
- } |
- |
- bool IsLowSurvivalRate() { return low_survival_rate_period_length_ > 0; } |
- |
+ // TODO(hpayer): Allocation site pretenuring may make this method obsolete. |
+ // Re-visit incremental marking heuristics. |
bool IsHighSurvivalRate() { return high_survival_rate_period_length_ > 0; } |
void ConfigureInitialOldGenerationSize(); |
- void ConfigureNewGenerationSize(); |
- |
void SelectScavengingVisitorsTable(); |
bool HasLowYoungGenerationAllocationRate(); |