| Index: runtime/vm/pages.cc
|
| diff --git a/runtime/vm/pages.cc b/runtime/vm/pages.cc
|
| index e4a9964adf6ff663ca37cb637ee6cedb32ee3156..6515f983a1f9024287376bceb0b15a1770b46c4b 100644
|
| --- a/runtime/vm/pages.cc
|
| +++ b/runtime/vm/pages.cc
|
| @@ -18,10 +18,6 @@ DEFINE_FLAG(int, heap_growth_time_ratio, 3,
|
| "The desired maximum percentage of time spent in GC");
|
| DEFINE_FLAG(int, heap_growth_rate, 4,
|
| "The size the heap is grown, in heap pages");
|
| -DEFINE_FLAG(bool, print_free_list_before_gc, false,
|
| - "Print free list statistics before a GC");
|
| -DEFINE_FLAG(bool, print_free_list_after_gc, false,
|
| - "Print free list statistics after a GC");
|
|
|
| HeapPage* HeapPage::Initialize(VirtualMemory* memory, bool is_executable) {
|
| ASSERT(memory->size() > VirtualMemory::PageSize());
|
| @@ -216,9 +212,9 @@ uword PageSpace::TryAllocate(intptr_t size, GrowthPolicy growth_policy) {
|
| ASSERT(Utils::IsAligned(size, kObjectAlignment));
|
| uword result = 0;
|
| if (size < kAllocatablePageSize) {
|
| - result = freelist_.TryAllocate(size);
|
| + result = TryBumpAllocate(size);
|
| if (result == 0) {
|
| - result = TryBumpAllocate(size);
|
| + result = freelist_.TryAllocate(size);
|
| if ((result == 0) &&
|
| (page_space_controller_.CanGrowPageSpace(size) ||
|
| growth_policy == kForceGrowth) &&
|
| @@ -347,10 +343,6 @@ void PageSpace::MarkSweep(bool invoke_api_callbacks) {
|
| Isolate* isolate = Isolate::Current();
|
| NoHandleScope no_handles(isolate);
|
|
|
| - if (FLAG_print_free_list_before_gc) {
|
| - freelist_.Print();
|
| - }
|
| -
|
| if (FLAG_verify_before_gc) {
|
| OS::PrintErr("Verifying before MarkSweep...");
|
| heap_->Verify();
|
| @@ -423,10 +415,6 @@ void PageSpace::MarkSweep(bool invoke_api_callbacks) {
|
| (capacity_ + KB2) / KB);
|
| }
|
|
|
| - if (FLAG_print_free_list_after_gc) {
|
| - freelist_.Print();
|
| - }
|
| -
|
| if (FLAG_verify_after_gc) {
|
| OS::PrintErr("Verifying after MarkSweep...");
|
| heap_->Verify();
|
|
|