OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/pages.h" | 5 #include "vm/pages.h" |
6 | 6 |
7 #include "platform/assert.h" | 7 #include "platform/assert.h" |
8 #include "vm/compiler_stats.h" | 8 #include "vm/compiler_stats.h" |
9 #include "vm/gc_marker.h" | 9 #include "vm/gc_marker.h" |
10 #include "vm/gc_sweeper.h" | 10 #include "vm/gc_sweeper.h" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 exec_pages_(NULL), | 154 exec_pages_(NULL), |
155 exec_pages_tail_(NULL), | 155 exec_pages_tail_(NULL), |
156 large_pages_(NULL), | 156 large_pages_(NULL), |
157 bump_top_(0), | 157 bump_top_(0), |
158 bump_end_(0), | 158 bump_end_(0), |
159 max_capacity_in_words_(max_capacity_in_words), | 159 max_capacity_in_words_(max_capacity_in_words), |
160 max_external_in_words_(max_external_in_words), | 160 max_external_in_words_(max_external_in_words), |
161 tasks_lock_(new Monitor()), | 161 tasks_lock_(new Monitor()), |
162 tasks_(0), | 162 tasks_(0), |
163 #if defined(DEBUG) | 163 #if defined(DEBUG) |
164 is_iterating_(false), | 164 iterating_thread_(NULL), |
165 #endif | 165 #endif |
166 page_space_controller_(heap, | 166 page_space_controller_(heap, |
167 FLAG_old_gen_growth_space_ratio, | 167 FLAG_old_gen_growth_space_ratio, |
168 FLAG_old_gen_growth_rate, | 168 FLAG_old_gen_growth_rate, |
169 FLAG_old_gen_growth_time_ratio), | 169 FLAG_old_gen_growth_time_ratio), |
170 gc_time_micros_(0), | 170 gc_time_micros_(0), |
171 collections_(0) { | 171 collections_(0) { |
172 } | 172 } |
173 | 173 |
174 | 174 |
(...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1138 return 0; | 1138 return 0; |
1139 } else { | 1139 } else { |
1140 ASSERT(total_time >= gc_time); | 1140 ASSERT(total_time >= gc_time); |
1141 int result = static_cast<int>((static_cast<double>(gc_time) / | 1141 int result = static_cast<int>((static_cast<double>(gc_time) / |
1142 static_cast<double>(total_time)) * 100); | 1142 static_cast<double>(total_time)) * 100); |
1143 return result; | 1143 return result; |
1144 } | 1144 } |
1145 } | 1145 } |
1146 | 1146 |
1147 } // namespace dart | 1147 } // namespace dart |
OLD | NEW |