* src/mm/cacao-gc/rootset.c (rootset_readout): Ignore threads in state new.
[cacao.git] / src / mm / cacao-gc / gc.c
index d262bcf778164021861647eaa6631c68ca38dc45..0ad4b59180caa040b3c8afea4f17689dab1361c2 100644 (file)
@@ -242,7 +242,12 @@ void gc_collect(s4 level)
 
        /* find the global and local rootsets */
        rs = rootset_readout();
-       GC_LOG( rootset_print(rs); );
+
+#if !defined(NDEBUG)
+       /* print the rootsets if debugging is enabled */
+       if (opt_GCDebugRootSet)
+               rootset_print(rs);
+#endif
 
        RT_TIMING_GET_TIME(time_rootset);