]> granicus.if.org Git - gc/commit
Do not use asm in GC_pause
authorIvan Maidanski <ivmai@mail.ru>
Mon, 31 Jul 2017 07:57:14 +0000 (10:57 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 31 Jul 2017 07:57:14 +0000 (10:57 +0300)
commitfb87ef1ca189e198398bdfb24301537e5db11976
treee6cbc3c07b04e5c154b23c1214056d5ba077060d
parent1589c86c45195c5d9059be0d34dbcd58bc03d7e7
Do not use asm in GC_pause

* pthread_support.c [GC_PTHREADS && !GC_WIN32_THREADS
&& (USE_SPIN_LOCK || !NO_PTHREAD_TRYLOCK)] (GC_PAUSE_SPIN_CYCLES): New
macro.
* pthread_support.c [GC_PTHREADS && !GC_WIN32_THREADS
&& (USE_SPIN_LOCK || !NO_PTHREAD_TRYLOCK)] (GC_pause): Replace "10"
with GC_PAUSE_SPIN_CYCLES; remove "dummy" local variable; use
AO_compiler_barrier() instead of __asm__("") and GC_noop1(++dummy).
pthread_support.c