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

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

Issue 501113003: - Disable concurrent sweep. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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 | « no previous file | no next file » | 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"
(...skipping 15 matching lines...) Expand all
26 DEFINE_FLAG(bool, print_free_list_after_gc, false, 26 DEFINE_FLAG(bool, print_free_list_after_gc, false,
27 "Print free list statistics after a GC"); 27 "Print free list statistics after a GC");
28 DEFINE_FLAG(bool, collect_code, true, 28 DEFINE_FLAG(bool, collect_code, true,
29 "Attempt to GC infrequently used code."); 29 "Attempt to GC infrequently used code.");
30 DEFINE_FLAG(int, code_collection_interval_in_us, 30000000, 30 DEFINE_FLAG(int, code_collection_interval_in_us, 30000000,
31 "Time between attempts to collect unused code."); 31 "Time between attempts to collect unused code.");
32 DEFINE_FLAG(bool, log_code_drop, false, 32 DEFINE_FLAG(bool, log_code_drop, false,
33 "Emit a log message when pointers to unused code are dropped."); 33 "Emit a log message when pointers to unused code are dropped.");
34 DEFINE_FLAG(bool, always_drop_code, false, 34 DEFINE_FLAG(bool, always_drop_code, false,
35 "Always try to drop code if the function's usage counter is >= 0"); 35 "Always try to drop code if the function's usage counter is >= 0");
36 DEFINE_FLAG(bool, concurrent_sweep, true, 36 DEFINE_FLAG(bool, concurrent_sweep, false,
37 "Concurrent sweep for old generation."); 37 "Concurrent sweep for old generation.");
38 38
39 HeapPage* HeapPage::Initialize(VirtualMemory* memory, PageType type) { 39 HeapPage* HeapPage::Initialize(VirtualMemory* memory, PageType type) {
40 ASSERT(memory->size() > VirtualMemory::PageSize()); 40 ASSERT(memory->size() > VirtualMemory::PageSize());
41 bool is_executable = (type == kExecutable); 41 bool is_executable = (type == kExecutable);
42 memory->Commit(is_executable); 42 memory->Commit(is_executable);
43 43
44 HeapPage* result = reinterpret_cast<HeapPage*>(memory->address()); 44 HeapPage* result = reinterpret_cast<HeapPage*>(memory->address());
45 result->memory_ = memory; 45 result->memory_ = memory;
46 result->next_ = NULL; 46 result->next_ = NULL;
(...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 return 0; 851 return 0;
852 } else { 852 } else {
853 ASSERT(total_time >= gc_time); 853 ASSERT(total_time >= gc_time);
854 int result= static_cast<int>((static_cast<double>(gc_time) / 854 int result= static_cast<int>((static_cast<double>(gc_time) /
855 static_cast<double>(total_time)) * 100); 855 static_cast<double>(total_time)) * 100);
856 return result; 856 return result;
857 } 857 }
858 } 858 }
859 859
860 } // namespace dart 860 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698