removed cout bloatware

This commit is contained in:
Victor Olin 2023-05-05 17:59:07 +02:00
parent 93be622863
commit 7975b6cbe2

View file

@ -257,16 +257,16 @@ namespace GC
// mark_hash(stack_bottom, stack_top);
vector<uintptr_t *> 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<std::pair<uintptr_t, uintptr_t>> chunk_spaces;
// std::set<uintptr_t> 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())
{