]> granicus.if.org Git - gc/commit
Workaround 'waiting while holding lock' code defect in stop_world (Unix)
authorIvan Maidanski <ivmai@mail.ru>
Thu, 18 May 2017 09:00:45 +0000 (12:00 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 18 May 2017 09:00:45 +0000 (12:00 +0300)
commitc4c3247df00b447ef2dfa4c013b492add037c23f
treea27f23aa38261a7bcddacb8b281b865547a329e4
parentd46fbe01b82974b25c6ffb5a30712277b4aaf18a
Workaround 'waiting while holding lock' code defect in stop_world (Unix)

* pthread_stop_world.c [!GC_OPENBSD_UTHREADS && !NACL && LINT2]
(GC_stop_world): Redefine WAIT_UNIT to 1; call sched_yield() instead
of usleep(); add comment.
pthread_stop_world.c