]> granicus.if.org Git - gc/commit
Code refactoring of GC_check_tls_for/GC_check_fl_marks
authorIvan Maidanski <ivmai@mail.ru>
Fri, 20 Apr 2012 05:12:47 +0000 (09:12 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 20 Apr 2012 15:18:42 +0000 (19:18 +0400)
commite67ab084068f6fc192b3d7505565f7d825cb82da
tree1b0df11c6d51e4dcb3715466a3af3e4351b3898e
parent490bf2992e2d2a0b115bb53f15aaab592f02ef8b
Code refactoring of GC_check_tls_for/GC_check_fl_marks

* 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).
alloc.c
include/private/gc_priv.h
thread_local_alloc.c