summaryrefslogtreecommitdiff
path: root/alloc.c
diff options
context:
space:
mode:
authorGreg Steuck <greg@nest.cx>2022-11-22 22:49:34 -0800
committerIvan Maidanski <ivmai@mail.ru>2022-11-25 11:13:10 +0300
commit2c1ae2ea45bd662c74a15b9e1d68be845d366783 (patch)
treef116a43ee210d293a3e2529029ead8172223000f /alloc.c
parent840bbcf603bc75e0b2da21ea9cbd84d1d63f14cf (diff)
downloadbdwgc-2c1ae2ea45bd662c74a15b9e1d68be845d366783.tar.gz
Remove OpenBSD uthreads (GC_OPENBSD_UTHREADS) support
Issue #512 (bdwgc). Userland threads were replaced by rthreads on OpenBSD about a decade ago. Prior to OpenBSD 5.2 release (2012), the OS had user threads and required special handling. * include/private/gc_priv.h [GC_OPENBSD_THREADS && !GC_USESIGRT_SIGNALS] (SIG_SUSPEND): Do not check GC_OPENBSD_UTHREADS (assume not defined). * include/private/gcconfig.h [OPENBSD] (NEED_FIND_LIMIT): Likewise. * include/private/gcconfig.h [PTHREAD_STOP_WORLD_IMPL && !NACL] (SIGNAL_BASED_STOP_WORLD): Likewise. * os_dep.c [OPENBSD] (GC_register_data_segments): Likewise. * pthread_stop_world.c (GC_usleep, GC_suspend_all, GC_stop_world, GC_start_world, GC_stop_init): Likewise. * tests/initfromthread.c (main): Likewise. * include/private/gcconfig.h [GC_OPENBSD_THREADS && OpenBSD<201211] (GC_OPENBSD_UTHREADS): Do not define. * os_dep.c [OPENBSD && GC_OPENBSD_UTHREADS]: Do not include sys/syscall.h. * os_dep.c [OPENBSD && GC_OPENBSD_UTHREADS] (__syscall): Do not declare. * os_dep.c [OPENBSD && GC_OPENBSD_UTHREADS] (GC_find_limit_openbsd): Remove. * os_dep.c [NEED_FIND_LIMIT || USE_PROC_FOR_LIBRARIES && THREADS] (GC_find_limit_with_bound): Move comment from GC_find_limit_openbsd. * pthread_stop_world.c [!NACL && GC_OPENBSD_UTHREADS]: Do not include pthread_np.h. Co-authored-by: Kurt Miller <bsdkurt@gmail.com>
Diffstat (limited to 'alloc.c')
0 files changed, 0 insertions, 0 deletions