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

Side by Side Diff: runtime/vm/pages.cc

Issue 796063006: Rename Thread -> OSThread. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/os_win.cc ('k') | runtime/vm/port.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 (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"
11 #include "vm/lockers.h" 11 #include "vm/lockers.h"
12 #include "vm/object.h" 12 #include "vm/object.h"
13 #include "vm/thread.h" 13 #include "vm/os_thread.h"
14 #include "vm/verified_memory.h" 14 #include "vm/verified_memory.h"
15 #include "vm/virtual_memory.h" 15 #include "vm/virtual_memory.h"
16 16
17 namespace dart { 17 namespace dart {
18 18
19 DEFINE_FLAG(int, heap_growth_rate, 0, 19 DEFINE_FLAG(int, heap_growth_rate, 0,
20 "The max number of pages the heap can grow at a time"); 20 "The max number of pages the heap can grow at a time");
21 DEFINE_FLAG(int, old_gen_growth_space_ratio, 20, 21 DEFINE_FLAG(int, old_gen_growth_space_ratio, 20,
22 "The desired maximum percentage of free space after old gen GC"); 22 "The desired maximum percentage of free space after old gen GC");
23 DEFINE_FLAG(int, old_gen_growth_time_ratio, 3, 23 DEFINE_FLAG(int, old_gen_growth_time_ratio, 3,
(...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 return 0; 1102 return 0;
1103 } else { 1103 } else {
1104 ASSERT(total_time >= gc_time); 1104 ASSERT(total_time >= gc_time);
1105 int result = static_cast<int>((static_cast<double>(gc_time) / 1105 int result = static_cast<int>((static_cast<double>(gc_time) /
1106 static_cast<double>(total_time)) * 100); 1106 static_cast<double>(total_time)) * 100);
1107 return result; 1107 return result;
1108 } 1108 }
1109 } 1109 }
1110 1110
1111 } // namespace dart 1111 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/os_win.cc ('k') | runtime/vm/port.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698