]> granicus.if.org Git - gc/commit
Fix stop_info.stack_ptr assignment in GC_suspend_all for OpenBSD
authorIvan Maidanski <ivmai@mail.ru>
Fri, 20 Jul 2012 20:36:34 +0000 (00:36 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sat, 21 Jul 2012 08:14:25 +0000 (12:14 +0400)
commite196288adb5f9579218746377f1237399f4789f9
tree6e96b3d132705267e2992eec6f3c370b9752abac
parent4c405570ceccdf340b17b0a9cd5ca10d39b32efb
Fix stop_info.stack_ptr assignment in GC_suspend_all for OpenBSD
(commit '7ff92dc' from master branch)

* os_dep.c (GC_get_stack_base): Abort if pthread_stackseg_np fails
(if GC_OPENBSD_THREADS).
* pthread_stop_world.c (GC_suspend_all): Get correct stack_ptr by
calling pthread_stackseg_np (subtracting ss_size from ss_sp) instead
of retrieving it from OpenBSD pthread implementation-dependent context
(if GC_OPENBSD_THREADS); remove comment.
os_dep.c
pthread_stop_world.c