Support GC_init (and get_stack_base) from non-main thread on NetBSD
authorIvan Maidanski <ivmai@mail.ru>
Mon, 9 Oct 2017 19:17:15 +0000 (22:17 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 9 Oct 2017 19:17:15 +0000 (22:17 +0300)
commit6052e4f376549c77ad7a5f0ac78532fa3876488f
tree36146c9b910be408bc7bcf2320e09c1dc3ab73d4
parent2178db2b67b9313b7f59d1f5f1aca743ad9b7df6
Support GC_init (and get_stack_base) from non-main thread on NetBSD

Now GC_get_[main_]stack_base uses pthread_getattr_np() and
pthread_attr_getstack() to determine the stack base address on NetBSD.

* include/private/gcconfig.h [NETBSD && !NO_PTHREAD_GETATTR_NP]
(HAVE_PTHREAD_GETATTR_NP): Define.
include/private/gcconfig.h