about summary refs log tree commit diff
path: root/src/rt
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2011-09-23 17:08:50 -0700
committerPatrick Walton <pcwalton@mimiga.net>2011-09-23 17:57:25 -0700
commitb995028c47deb40457657a42c6fff45e6717e3f4 (patch)
treea7e7cf87bcd084bd6859d869890b723880907c0c /src/rt
parent0c4e0fdfae2fad4a132bdfef3cb856ec5dde84c9 (diff)
downloadrust-b995028c47deb40457657a42c6fff45e6717e3f4.tar.gz
rust-b995028c47deb40457657a42c6fff45e6717e3f4.zip
rt: Turn off some debug code
Diffstat (limited to 'src/rt')
-rw-r--r--src/rt/rust_cc.cpp2
-rw-r--r--src/rt/rust_shape.h8
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<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,
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 {