diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-10-03 08:32:11 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-10-03 21:33:51 +0300 |
commit | 6babfbb56407c3da57ee41aa53fc9c25dc4506c3 (patch) | |
tree | 1508cc9a035589e70a0c3d007dcf9353180222da /os_dep.c | |
parent | 97cca6230ff1a1b6057188ae3e16a2f2d2f6d0c5 (diff) | |
download | bdwgc-6babfbb56407c3da57ee41aa53fc9c25dc4506c3.tar.gz |
Remove private pthread_stop_world.h and darwin_stop_world.h
(refactoring)
* Makefile.direct (SRCS): Remove pthread_stop_world.h and
darwin_stop_world.h items.
* include/include.am (dist_noinst_HEADERS): Likewise.
* darwin_stop_world.c [!GC_NO_THREADS_DISCOVERY && MPROTECT_VDB]
(GC_darwin_register_mach_handler_thread): Change to no-argument
GC_darwin_register_self_mach_handler().
* include/private/darwin_stop_world.h: Remove.
* include/private/pthread_stop_world.h: Likewise.
* include/private/gc_priv.h [GC_DARWIN_THREADS && MPROTECT_VDB]
(GC_mprotect_stop, GC_mprotect_resume): Move declaration from
darwin_stop_world.h.
* include/private/gc_priv.h [GC_DARWIN_THREADS && MPROTECT_VDB
&& !GC_NO_THREADS_DISCOVERY] (GC_darwin_register_mach_handler_thread):
Move declaration from darwin_stop_world.h and change to
GC_darwin_register_self_mach_handler().
* include/private/pthread_support.h [GC_DARWIN_THREADS]: Move include
of mach.h and thread_act.h from darwin_stop_world.h.
* include/private/pthread_support.h [GC_DARWIN_THREADS]: Do not
include darwin_stop_world.h.
* os_dep.c [GC_DARWIN_THREADS && MPROTECT_VDB]: Likewise.
* include/private/pthread_support.h [GC_DARWIN_THREADS]
(thread_stop_info, GC_FindTopOfStack, GC_is_mach_marker): Move from
darwin_stop_world.h.
* include/private/pthread_support.h [!GC_DARWIN_THREADS
&& PTHREAD_STOP_WORLD_IMPL]: Do not include pthread_stop_world.h.
* include/private/pthread_support.h [!GC_DARWIN_THREADS
&& PTHREAD_STOP_WORLD_IMPL] (thread_stop_info, GC_stop_init): Move
from pthread_stop_world.h.
* os_dep.c [MPROTECT_VDB && DARWIN && THREADS
&& !GC_NO_THREADS_DISCOVERY] (GC_mprotect_thread): Call
GC_darwin_register_self_mach_handler() instead of
GC_darwin_register_mach_handler_thread(mach_thread_self()).
Diffstat (limited to 'os_dep.c')
-rw-r--r-- | os_dep.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -90,11 +90,6 @@ # include "mm/PCR_MM.h" #endif -#if defined(GC_DARWIN_THREADS) && defined(MPROTECT_VDB) - /* Declare GC_mprotect_stop and GC_mprotect_resume as extern "C". */ -# include "private/darwin_stop_world.h" -#endif - #if !defined(NO_EXECUTE_PERMISSION) STATIC GC_bool GC_pages_executable = TRUE; #else @@ -4556,7 +4551,7 @@ STATIC void *GC_mprotect_thread(void *arg) (void)pthread_setname_np("GC-mprotect"); # endif # if defined(THREADS) && !defined(GC_NO_THREADS_DISCOVERY) - GC_darwin_register_mach_handler_thread(mach_thread_self()); + GC_darwin_register_self_mach_handler(); # endif for(;;) { |