From b995028c47deb40457657a42c6fff45e6717e3f4 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Fri, 23 Sep 2011 17:08:50 -0700 Subject: [PATCH] rt: Turn off some debug code --- src/rt/rust_cc.cpp | 2 ++ src/rt/rust_shape.h | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/rt/rust_cc.cpp b/src/rt/rust_cc.cpp index 146c1f514ba..c0a7c4b4740 100644 --- a/src/rt/rust_cc.cpp +++ b/src/rt/rust_cc.cpp @@ -382,12 +382,14 @@ mark::do_mark(rust_task *task, const std::vector &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, diff --git a/src/rt/rust_shape.h b/src/rt/rust_shape.h index e71c5c8188f..ad985fa2d68 100644 --- a/src/rt/rust_shape.h +++ b/src/rt/rust_shape.h @@ -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 {