[pypy-commit] stmgc c8-new-page-handling: Show the content of the undo slices too
arigo
noreply at buildbot.pypy.org
Tue Sep 23 20:50:46 CEST 2014
Author: Armin Rigo <arigo at tunes.org>
Branch: c8-new-page-handling
Changeset: r1416:9761d0b42cae
Date: 2014-09-23 20:50 +0200
http://bitbucket.org/pypy/stmgc/changeset/9761d0b42cae/
Log: Show the content of the undo slices too
diff --git a/c8/stm/core.c b/c8/stm/core.c
--- a/c8/stm/core.c
+++ b/c8/stm/core.c
@@ -191,18 +191,22 @@
{
struct stm_commit_log_entry_s *cl = &commit_log_root;
- fprintf(stderr, "commit log root (%p, %d)\n", cl->next, cl->segment_num);
+ fprintf(stderr, "commit log:\n");
while ((cl = cl->next)) {
if (cl == (void *)-1) {
fprintf(stderr, " INEVITABLE\n");
return;
}
- fprintf(stderr, " elem (%p, %d)\n", cl->next, cl->segment_num);
+ fprintf(stderr, " entry at %p: seg %d\n", cl, cl->segment_num);
struct stm_undo_s *undo = cl->written;
struct stm_undo_s *end = undo + cl->written_count;
for (; undo < end; undo++) {
- fprintf(stderr, " obj %p, size %d, ofs %lu\n", undo->object,
+ fprintf(stderr, " obj %p, size %d, ofs %lu: ", undo->object,
SLICE_SIZE(undo->slice), SLICE_OFFSET(undo->slice));
+ long i;
+ for (i=0; i<SLICE_SIZE(undo->slice); i += 8)
+ fprintf(stderr, " 0x%016lx", *(long *)(undo->backup + i));
+ fprintf(stderr, "\n");
}
}
}
More information about the pypy-commit
mailing list