Fix setup_mark_lock missing prototype
authorIvan Maidanski <ivmai@mail.ru>
Tue, 23 Sep 2014 19:20:08 +0000 (23:20 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 23 Sep 2014 19:20:08 +0000 (23:20 +0400)
commitd0615e61c920120f4689ae591f731151d5ca8523
tree635d33228587d839523908ef7efae8411f1f1a40
parentad2be4bcad9c1de18feef7f8d7ebb98d680f064f
Fix setup_mark_lock missing prototype
(and do not call it if no parallel marker)

* include/private/pthread_support.h (GC_setup_mark_lock): Remove
prototype.
* misc.c (GC_init): Remove GC_setup_mark_lock call (move it to
GC_thr_init).
* pthread_support.c (setup_mark_lock): Rename from GC_setup_mark_lock;
add prototype (only if PARALLEL_MARK).
* pthread_support.c (GC_thr_init): Call setup_mark_lock() unless
available_markers_m1 is 0.
include/private/pthread_support.h
misc.c
pthread_support.c