Commit 8e6c247c authored by Ben Gamari's avatar Ben Gamari 🐢

XXX: Various tracing

parent 87750c88
......@@ -1837,6 +1837,7 @@ resizeGenerations (void)
}
#if 0
debugBelch("n_words: %lu, live_estimate=%lu\n", oldest_gen->n_words, oldest_gen->live_estimate);
debugBelch("live: %d, min_alloc: %d, size : %d, max = %d\n", live,
min_alloc, size, max);
debugBelch("resize_gen: n_blocks: %lu, n_large_block: %lu, n_compact_blocks: %lu\n",
......
......@@ -1697,6 +1697,7 @@ nonmovingMark (MarkQueue *queue)
case NULL_ENTRY:
// Perhaps the update remembered set has more to mark...
if (upd_rem_set_block_list) {
trace(1, "Starting taking updremset");
ACQUIRE_LOCK(&upd_rem_set_lock);
bdescr *old = queue->blocks;
queue->blocks = upd_rem_set_block_list;
......@@ -1704,12 +1705,15 @@ nonmovingMark (MarkQueue *queue)
upd_rem_set_block_list = NULL;
RELEASE_LOCK(&upd_rem_set_lock);
trace(1, "Currently taking updremset");
ACQUIRE_SM_LOCK;
freeGroup(old);
RELEASE_SM_LOCK;
trace(1, "Finished taking updremset");
} else {
// Nothing more to do
debugTrace(DEBUG_nonmoving_gc, "Finished mark pass: %d", count);
trace(1, "Finished mark pass");
traceConcMarkEnd(count);
return;
}
......
......@@ -394,6 +394,7 @@ void nonmovingSweepStableNameTable()
// a stable name can die during moving heap collection and we can't use
// nonmovingIsAlive on those objects. Inefficient.
trace(1, "StartNonmovingSweepStableNameTable")
stableNameLock();
FOR_EACH_STABLE_NAME(
p, {
......@@ -409,4 +410,5 @@ void nonmovingSweepStableNameTable()
}
});
stableNameUnlock();
trace(1, "EndNonmovingSweepStableNameTable")
}
......@@ -1466,6 +1466,9 @@ calcNeeded (bool force_major, memcount *blocks_needed)
blocks += gen->n_large_blocks
+ gen->n_compact_blocks;
// debugBelch("calcNeeded(%d): blocks: %lu, n_blocks: %lu, max_blocks: %lu\n",
// g, blocks, gen->n_blocks, gen->max_blocks);
// we need at least this much space
needed += blocks;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment