rt: Turn off some debug code

This commit is contained in:
Patrick Walton 2011-09-23 17:08:50 -07:00
parent 0c4e0fdfae
commit b995028c47
2 changed files with 6 additions and 4 deletions

View file

@ -382,12 +382,14 @@ mark::do_mark(rust_task *task, const std::vector<void *> &roots,
shape::type_param *params =
shape::type_param::from_tydesc_and_data(tydesc, p, arena);
#if 0
// We skip over the reference count here.
shape::log log(task, true, tydesc->shape, params,
tydesc->shape_tables, p + sizeof(uintptr_t),
std::cerr);
log.walk();
DPRINT("\n");
#endif
// We skip over the reference count here.
mark mark(task, true, tydesc->shape, params, tydesc->shape_tables,

View file

@ -16,11 +16,11 @@
#define ARENA_SIZE 256
#define DPRINT(fmt,...) fprintf(stderr, fmt, ##__VA_ARGS__)
#define DPRINTCX(cx) shape::print::print_cx(cx)
//#define DPRINT(fmt,...) fprintf(stderr, fmt, ##__VA_ARGS__)
//#define DPRINTCX(cx) shape::print::print_cx(cx)
//#define DPRINT(fmt,...)
//#define DPRINTCX(cx)
#define DPRINT(fmt,...)
#define DPRINTCX(cx)
namespace shape {