| OLD | NEW |
| 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 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1275 | 1275 |
| 1276 static void UpdateSurvivalRateTrend(int start_new_space_size); | 1276 static void UpdateSurvivalRateTrend(int start_new_space_size); |
| 1277 | 1277 |
| 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 int 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_; | 1288 static bool bumped_old_gen_limits_; |
| 1289 | 1289 |
| 1290 static void set_survival_rate_trend(SurvivalRateTrend survival_rate_trend) { | 1290 static void set_survival_rate_trend(SurvivalRateTrend survival_rate_trend) { |
| 1291 ASSERT(survival_rate_trend != FLUCTUATING); | 1291 ASSERT(survival_rate_trend != FLUCTUATING); |
| 1292 previous_survival_rate_trend_ = survival_rate_trend_; | 1292 previous_survival_rate_trend_ = survival_rate_trend_; |
| 1293 survival_rate_trend_ = survival_rate_trend; | 1293 survival_rate_trend_ = survival_rate_trend; |
| 1294 } | 1294 } |
| 1295 | 1295 |
| (...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1985 | 1985 |
| 1986 // To speed up scavenge collections new space string are kept | 1986 // To speed up scavenge collections new space string are kept |
| 1987 // separate from old space strings. | 1987 // separate from old space strings. |
| 1988 static List<Object*> new_space_strings_; | 1988 static List<Object*> new_space_strings_; |
| 1989 static List<Object*> old_space_strings_; | 1989 static List<Object*> old_space_strings_; |
| 1990 }; | 1990 }; |
| 1991 | 1991 |
| 1992 } } // namespace v8::internal | 1992 } } // namespace v8::internal |
| 1993 | 1993 |
| 1994 #endif // V8_HEAP_H_ | 1994 #endif // V8_HEAP_H_ |
| OLD | NEW |