[svn:parrot] r47378 - trunk/include/parrot
bacek at svn.parrot.org
bacek at svn.parrot.org
Sat Jun 5 11:31:44 UTC 2010
Author: bacek
Date: Sat Jun 5 11:31:43 2010
New Revision: 47378
URL: https://trac.parrot.org/parrot/changeset/47378
Log:
Use non-zero value for GC trace flags. Fix a GC trace collection bug which is at least 2 year old.
Short explanation (flags & GC_trace_stack_FLAG) always produce FALSE if GC_trace_stack_FLAG is zero.
Modified:
trunk/include/parrot/gc_api.h
Modified: trunk/include/parrot/gc_api.h
==============================================================================
--- trunk/include/parrot/gc_api.h Sat Jun 5 08:25:21 2010 (r47377)
+++ trunk/include/parrot/gc_api.h Sat Jun 5 11:31:43 2010 (r47378)
@@ -93,10 +93,10 @@
/* &end_gen */
-#define GC_trace_stack_FLAG (UINTVAL)(1 << 0) /* trace system areas and stack */
-#define GC_trace_normal (UINTVAL)(1 << 0) /* the same */
-#define GC_lazy_FLAG (UINTVAL)(1 << 1) /* timely destruction run */
-#define GC_finish_FLAG (UINTVAL)(1 << 2) /* on Parrot exit: mark (almost) all PMCs dead and */
+#define GC_trace_stack_FLAG (UINTVAL)(1 << 1) /* trace system areas and stack */
+#define GC_trace_normal_FLAG (UINTVAL)(1 << 2) /* the same */
+#define GC_lazy_FLAG (UINTVAL)(1 << 3) /* timely destruction run */
+#define GC_finish_FLAG (UINTVAL)(1 << 4) /* on Parrot exit: mark (almost) all PMCs dead and */
/* garbage collect. */
/* HEADERIZER BEGIN: src/gc/api.c */
More information about the parrot-commits
mailing list