Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 139 int Heap::ms_count_ = 0; | 139 int Heap::ms_count_ = 0; |
| 140 unsigned int Heap::gc_count_ = 0; | 140 unsigned int Heap::gc_count_ = 0; |
| 141 | 141 |
| 142 GCTracer* Heap::tracer_ = NULL; | 142 GCTracer* Heap::tracer_ = NULL; |
| 143 | 143 |
| 144 int Heap::unflattened_strings_length_ = 0; | 144 int Heap::unflattened_strings_length_ = 0; |
| 145 | 145 |
| 146 int Heap::always_allocate_scope_depth_ = 0; | 146 int Heap::always_allocate_scope_depth_ = 0; |
| 147 int Heap::linear_allocation_scope_depth_ = 0; | 147 int Heap::linear_allocation_scope_depth_ = 0; |
| 148 int Heap::contexts_disposed_ = 0; | 148 int Heap::contexts_disposed_ = 0; |
| 149 int Heap::scan_on_scavenge_pages_ = 0; | |
| 149 | 150 |
| 150 int Heap::young_survivors_after_last_gc_ = 0; | 151 int Heap::young_survivors_after_last_gc_ = 0; |
| 151 int Heap::high_survival_rate_period_length_ = 0; | 152 int Heap::high_survival_rate_period_length_ = 0; |
| 152 double Heap::survival_rate_ = 0; | 153 double Heap::survival_rate_ = 0; |
| 153 Heap::SurvivalRateTrend Heap::previous_survival_rate_trend_ = Heap::STABLE; | 154 Heap::SurvivalRateTrend Heap::previous_survival_rate_trend_ = Heap::STABLE; |
| 154 Heap::SurvivalRateTrend Heap::survival_rate_trend_ = Heap::STABLE; | 155 Heap::SurvivalRateTrend Heap::survival_rate_trend_ = Heap::STABLE; |
| 155 | 156 |
| 156 #ifdef DEBUG | 157 #ifdef DEBUG |
| 157 bool Heap::allocation_allowed_ = true; | 158 bool Heap::allocation_allowed_ = true; |
| 158 | 159 |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 507 next_gc_likely_to_collect_more = | 508 next_gc_likely_to_collect_more = |
| 508 PerformGarbageCollection(collector, &tracer); | 509 PerformGarbageCollection(collector, &tracer); |
| 509 rate->Stop(); | 510 rate->Stop(); |
| 510 | 511 |
| 511 GarbageCollectionEpilogue(); | 512 GarbageCollectionEpilogue(); |
| 512 } | 513 } |
| 513 | 514 |
| 514 | 515 |
| 515 ASSERT(collector == SCAVENGER || IncrementalMarking::IsStopped()); | 516 ASSERT(collector == SCAVENGER || IncrementalMarking::IsStopped()); |
| 516 if (IncrementalMarking::IsStopped()) { | 517 if (IncrementalMarking::IsStopped()) { |
| 518 StackGuard::Continue(GC_REQUEST); | |
|
Vyacheslav Egorov (Chromium)
2011/04/16 17:50:36
Move to IncrementalMarking::Finalize
Erik Corry
2011/04/23 17:00:11
Done.
| |
| 517 if (IncrementalMarking::WorthActivating() && NextGCIsLikelyToBeFull()) { | 519 if (IncrementalMarking::WorthActivating() && NextGCIsLikelyToBeFull()) { |
| 518 IncrementalMarking::Start(); | 520 IncrementalMarking::Start(); |
| 519 } | 521 } |
| 520 } | 522 } |
| 521 | 523 |
| 522 #ifdef ENABLE_LOGGING_AND_PROFILING | 524 #ifdef ENABLE_LOGGING_AND_PROFILING |
| 523 if (FLAG_log_gc) HeapProfiler::WriteSample(); | 525 if (FLAG_log_gc) HeapProfiler::WriteSample(); |
| 524 #endif | 526 #endif |
| 525 | 527 |
| 526 return next_gc_likely_to_collect_more; | 528 return next_gc_likely_to_collect_more; |
| (...skipping 5146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5673 void ExternalStringTable::TearDown() { | 5675 void ExternalStringTable::TearDown() { |
| 5674 new_space_strings_.Free(); | 5676 new_space_strings_.Free(); |
| 5675 old_space_strings_.Free(); | 5677 old_space_strings_.Free(); |
| 5676 } | 5678 } |
| 5677 | 5679 |
| 5678 | 5680 |
| 5679 List<Object*> ExternalStringTable::new_space_strings_; | 5681 List<Object*> ExternalStringTable::new_space_strings_; |
| 5680 List<Object*> ExternalStringTable::old_space_strings_; | 5682 List<Object*> ExternalStringTable::old_space_strings_; |
| 5681 | 5683 |
| 5682 } } // namespace v8::internal | 5684 } } // namespace v8::internal |
| OLD | NEW |