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

Side by Side Diff: src/heap.h

Issue 2836026: Don't make any decisions on old space limits after scavenges. (Closed)
Patch Set: Created 10 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 enum SurvivalRateTrend { INCREASING, STABLE, DECREASING, FLUCTUATING }; 1278 enum SurvivalRateTrend { INCREASING, STABLE, DECREASING, FLUCTUATING };
1279 1279
1280 static const int kYoungSurvivalRateThreshold = 90; 1280 static const int kYoungSurvivalRateThreshold = 90;
1281 static const int kYoungSurvivalRateAllowedDeviation = 15; 1281 static const int kYoungSurvivalRateAllowedDeviation = 15;
1282 1282
1283 static int young_survivors_after_last_gc_; 1283 static int young_survivors_after_last_gc_;
1284 static int high_survival_rate_period_length_; 1284 static int high_survival_rate_period_length_;
1285 static double survival_rate_; 1285 static double survival_rate_;
1286 static SurvivalRateTrend previous_survival_rate_trend_; 1286 static SurvivalRateTrend previous_survival_rate_trend_;
1287 static SurvivalRateTrend survival_rate_trend_; 1287 static SurvivalRateTrend survival_rate_trend_;
1288 static bool bumped_old_gen_limits_;
1289 1288
1290 static void set_survival_rate_trend(SurvivalRateTrend survival_rate_trend) { 1289 static void set_survival_rate_trend(SurvivalRateTrend survival_rate_trend) {
1291 ASSERT(survival_rate_trend != FLUCTUATING); 1290 ASSERT(survival_rate_trend != FLUCTUATING);
1292 previous_survival_rate_trend_ = survival_rate_trend_; 1291 previous_survival_rate_trend_ = survival_rate_trend_;
1293 survival_rate_trend_ = survival_rate_trend; 1292 survival_rate_trend_ = survival_rate_trend;
1294 } 1293 }
1295 1294
1296 static SurvivalRateTrend survival_rate_trend() { 1295 static SurvivalRateTrend survival_rate_trend() {
1297 if (survival_rate_trend_ == STABLE) { 1296 if (survival_rate_trend_ == STABLE) {
1298 return STABLE; 1297 return STABLE;
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
1985 1984
1986 // To speed up scavenge collections new space string are kept 1985 // To speed up scavenge collections new space string are kept
1987 // separate from old space strings. 1986 // separate from old space strings.
1988 static List<Object*> new_space_strings_; 1987 static List<Object*> new_space_strings_;
1989 static List<Object*> old_space_strings_; 1988 static List<Object*> old_space_strings_;
1990 }; 1989 };
1991 1990
1992 } } // namespace v8::internal 1991 } } // namespace v8::internal
1993 1992
1994 #endif // V8_HEAP_H_ 1993 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698