aboutsummaryrefslogtreecommitdiff
path: root/gc.cpp
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2013-08-13 10:38:21 +0800
committerTeddy <ted.sybil@gmail.com>2013-08-13 10:38:21 +0800
commit283cc828e86a7177edbacfe3860ca7765661f811 (patch)
treef5485a7bb393f48a42d4e80af5d261744d916c60 /gc.cpp
parentd6765d8d42bd543b414d6ae54392247dd26da649 (diff)
add test for circular refgc_sweep
Diffstat (limited to 'gc.cpp')
-rw-r--r--gc.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gc.cpp b/gc.cpp
index 6db85fa..4b6eaca 100644
--- a/gc.cpp
+++ b/gc.cpp
@@ -66,6 +66,8 @@ void GarbageCollector::force() {
{
#ifdef GC_DEBUG
fprintf(stderr, "GC: !!! destroying space 0x%llx. \n", (ull)*l);
+#endif
+#ifdef GC_INFO
cnt++;
#endif
delete *l;