]> granicus.if.org Git - gc/commit
Disable implicit multi-threaded mode for Win32 to avoid LOCK crash
authorIvan Maidanski <ivmai@mail.ru>
Sat, 17 Dec 2016 15:15:02 +0000 (18:15 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 6 Feb 2017 17:03:44 +0000 (20:03 +0300)
commit8bb919baf4708c358d45d0ce0180b479c74dc591
tree8d0983faf4726327d07f497b4d2aa4462052ecef
parentcebc69ea94b590f72a39652e03e974f521321b0c
Disable implicit multi-threaded mode for Win32 to avoid LOCK crash
(fix commit d5c6531)

* include/private/gc_locks.h [GC_ALWAYS_MULTITHREADED] (GC_need_to_lock):
Do not define to TRUE unless USE_PTHREAD_LOCKS or USE_SPIN_LOCK; issue
#error otherwise (excluding CPPCHECK case) as PCR and Windows-based
lock implementation requires it to be initialized first.
* include/private/gc_locks.h [UNCOND_LOCK && !LOCK && LINT2] (LOCK,
UNLOCK): Define (to UNCOND_[UN]LOCK) only if USE_PTHREAD_LOCKS.
include/private/gc_locks.h