From 7975b6cbe21faf8a3f8dac504a45a64637373059 Mon Sep 17 00:00:00 2001 From: Victor Olin Date: Fri, 5 May 2023 17:59:07 +0200 Subject: [PATCH] removed cout bloatware --- src/GC/lib/heap.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/GC/lib/heap.cpp b/src/GC/lib/heap.cpp index 16019f2..64e1dea 100644 --- a/src/GC/lib/heap.cpp +++ b/src/GC/lib/heap.cpp @@ -257,16 +257,16 @@ namespace GC // mark_hash(stack_bottom, stack_top); vector roots; - cout << "\nb4 find_roots\n"; + // cout << "\nb4 find_roots\n"; find_roots(stack_bottom, roots); - cout << "b4 mark\n"; + // cout << "b4 mark\n";'' mark(roots); - cout << "b4 sweep\n"; + // cout << "b4 sweep\n"; sweep(heap); - cout << "b4 free\n"; + // cout << "b4 free\n"; free(heap); auto c_end = time_now; @@ -318,13 +318,13 @@ namespace GC std::queue> chunk_spaces; // std::set visited_addresses; - cout << "b4 find_chunks of roots\n"; + // cout << "b4 find_chunks of roots\n"; while (iter != end) { find_chunks(*iter++, chunk_spaces); } - cout << "b4 find_chunks of chunks\n"; + // cout << "b4 find_chunks of chunks\n"; while (!chunk_spaces.empty()) { auto range = chunk_spaces.front(); @@ -517,7 +517,7 @@ namespace GC if (profiler_enabled) Profiler::record(SweepStart); auto iter = heap.m_allocated_chunks.begin(); - std::cout << "Chunks alloced: " << heap.m_allocated_chunks.size() << std::endl; + // std::cout << "Chunks alloced: " << heap.m_allocated_chunks.size() << std::endl; // This cannot "iter != stop", results in seg fault, since the end gets updated, I think. while (iter != heap.m_allocated_chunks.end()) {