removed cout bloatware
This commit is contained in:
parent
93be622863
commit
7975b6cbe2
1 changed files with 7 additions and 7 deletions
|
|
@ -257,16 +257,16 @@ namespace GC
|
||||||
// mark_hash(stack_bottom, stack_top);
|
// mark_hash(stack_bottom, stack_top);
|
||||||
|
|
||||||
vector<uintptr_t *> roots;
|
vector<uintptr_t *> roots;
|
||||||
cout << "\nb4 find_roots\n";
|
// cout << "\nb4 find_roots\n";
|
||||||
find_roots(stack_bottom, roots);
|
find_roots(stack_bottom, roots);
|
||||||
|
|
||||||
cout << "b4 mark\n";
|
// cout << "b4 mark\n";''
|
||||||
mark(roots);
|
mark(roots);
|
||||||
|
|
||||||
cout << "b4 sweep\n";
|
// cout << "b4 sweep\n";
|
||||||
sweep(heap);
|
sweep(heap);
|
||||||
|
|
||||||
cout << "b4 free\n";
|
// cout << "b4 free\n";
|
||||||
free(heap);
|
free(heap);
|
||||||
|
|
||||||
auto c_end = time_now;
|
auto c_end = time_now;
|
||||||
|
|
@ -318,13 +318,13 @@ namespace GC
|
||||||
std::queue<std::pair<uintptr_t, uintptr_t>> chunk_spaces;
|
std::queue<std::pair<uintptr_t, uintptr_t>> chunk_spaces;
|
||||||
// std::set<uintptr_t> visited_addresses;
|
// std::set<uintptr_t> visited_addresses;
|
||||||
|
|
||||||
cout << "b4 find_chunks of roots\n";
|
// cout << "b4 find_chunks of roots\n";
|
||||||
while (iter != end)
|
while (iter != end)
|
||||||
{
|
{
|
||||||
find_chunks(*iter++, chunk_spaces);
|
find_chunks(*iter++, chunk_spaces);
|
||||||
}
|
}
|
||||||
|
|
||||||
cout << "b4 find_chunks of chunks\n";
|
// cout << "b4 find_chunks of chunks\n";
|
||||||
while (!chunk_spaces.empty())
|
while (!chunk_spaces.empty())
|
||||||
{
|
{
|
||||||
auto range = chunk_spaces.front();
|
auto range = chunk_spaces.front();
|
||||||
|
|
@ -517,7 +517,7 @@ namespace GC
|
||||||
if (profiler_enabled)
|
if (profiler_enabled)
|
||||||
Profiler::record(SweepStart);
|
Profiler::record(SweepStart);
|
||||||
auto iter = heap.m_allocated_chunks.begin();
|
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.
|
// This cannot "iter != stop", results in seg fault, since the end gets updated, I think.
|
||||||
while (iter != heap.m_allocated_chunks.end())
|
while (iter != heap.m_allocated_chunks.end())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue