| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 | 684 |
| 685 if (collector == MARK_COMPACTOR) { | 685 if (collector == MARK_COMPACTOR) { |
| 686 // Perform mark-sweep with optional compaction. | 686 // Perform mark-sweep with optional compaction. |
| 687 MarkCompact(tracer); | 687 MarkCompact(tracer); |
| 688 | 688 |
| 689 bool high_survival_rate_during_scavenges = IsHighSurvivalRate() && | 689 bool high_survival_rate_during_scavenges = IsHighSurvivalRate() && |
| 690 IsStableOrIncreasingSurvivalTrend(); | 690 IsStableOrIncreasingSurvivalTrend(); |
| 691 | 691 |
| 692 UpdateSurvivalRateTrend(start_new_space_size); | 692 UpdateSurvivalRateTrend(start_new_space_size); |
| 693 | 693 |
| 694 int old_gen_size = PromotedSpaceSize(); | 694 intptr_t old_gen_size = PromotedSpaceSize(); |
| 695 old_gen_promotion_limit_ = | 695 old_gen_promotion_limit_ = |
| 696 old_gen_size + Max(kMinimumPromotionLimit, old_gen_size / 3); | 696 old_gen_size + Max(kMinimumPromotionLimit, old_gen_size / 3); |
| 697 old_gen_allocation_limit_ = | 697 old_gen_allocation_limit_ = |
| 698 old_gen_size + Max(kMinimumAllocationLimit, old_gen_size / 2); | 698 old_gen_size + Max(kMinimumAllocationLimit, old_gen_size / 2); |
| 699 | 699 |
| 700 if (high_survival_rate_during_scavenges && | 700 if (high_survival_rate_during_scavenges && |
| 701 IsStableOrIncreasingSurvivalTrend()) { | 701 IsStableOrIncreasingSurvivalTrend()) { |
| 702 // Stable high survival rates of young objects both during partial and | 702 // Stable high survival rates of young objects both during partial and |
| 703 // full collection indicate that mutator is either building or modifying | 703 // full collection indicate that mutator is either building or modifying |
| 704 // a structure with a long lifetime. | 704 // a structure with a long lifetime. |
| (...skipping 4254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4959 void ExternalStringTable::TearDown() { | 4959 void ExternalStringTable::TearDown() { |
| 4960 new_space_strings_.Free(); | 4960 new_space_strings_.Free(); |
| 4961 old_space_strings_.Free(); | 4961 old_space_strings_.Free(); |
| 4962 } | 4962 } |
| 4963 | 4963 |
| 4964 | 4964 |
| 4965 List<Object*> ExternalStringTable::new_space_strings_; | 4965 List<Object*> ExternalStringTable::new_space_strings_; |
| 4966 List<Object*> ExternalStringTable::old_space_strings_; | 4966 List<Object*> ExternalStringTable::old_space_strings_; |
| 4967 | 4967 |
| 4968 } } // namespace v8::internal | 4968 } } // namespace v8::internal |
| OLD | NEW |