path: root/include
diff options
authorIvan Maidanski <>2012-04-20 07:12:47 +0200
committerIvan Maidanski <>2012-04-22 13:17:22 +0200
commit6eb24292d4cd371013c15e31e8d827bb38672acf (patch)
tree9a2b8826bf02db77814318ae40ff66358c71a03a /include
parent5fff38b536569a43634730768fe5fda6f9a83ab1 (diff)
Code refactoring of GC_check_tls_for/GC_check_fl_marks
(Apply commit e67ab08 from 'master' branch) * alloc.c (GC_check_fl_marks): Change prototype (pass pointer to "freelist" element instead of value); do not define the function if THREAD_LOCAL_ALLOC undefined. * include/private/gc_priv.h (GC_check_fl_marks): Likewise. * alloc.c (GC_check_fl_marks): Skip check if the argument points to a special (non-pointer) value; update comment; rename "q" local variable to "list". * thread_local_alloc.c (GC_check_tls_for): Update code according to GC_check_fl_marks functionality change (remove checks for special value).
Diffstat (limited to 'include')
1 files changed, 2 insertions, 2 deletions
diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h
index 43e7f26..8eefb70 100644
--- a/include/private/gc_priv.h
+++ b/include/private/gc_priv.h
@@ -1508,8 +1508,8 @@ GC_INNER void GC_set_hdr_marks(hdr * hhdr);
GC_INNER void GC_set_fl_marks(ptr_t p);
/* Set all mark bits associated with */
/* a free list. */
- void GC_check_fl_marks(ptr_t p);
+#if defined(GC_ASSERTIONS) && defined(THREADS) && defined(THREAD_LOCAL_ALLOC)
+ void GC_check_fl_marks(void **);
/* Check that all mark bits */
/* associated with a free list are */
/* set. Abort if not. */