summaryrefslogtreecommitdiff
path: root/pthread_stop_world.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-12-30 18:34:12 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-12-30 18:34:12 +0300
commita6cd81cbd4a0f41cbea04f2045b25f0601b915d0 (patch)
tree9dea580dbf430680f79a51e06293e761d8a112af /pthread_stop_world.c
parenteefacb753ae1f4dd8f6e0fe007335553d4a2019e (diff)
downloadbdwgc-a6cd81cbd4a0f41cbea04f2045b25f0601b915d0.tar.gz
Fix joinable threads shutdown on NaCl
(fix of commits bd86ef8b6, 77ffb1ff5) GC_nacl_shutdown_gc_thread() should be called (and value of GC_nacl_gc_thread_self should be cleared) on thread termination even for non-detached threads. Thus, GC_nacl_initialize_gc_thread() should be called (and value of GC_nacl_gc_thread_self should be set) additionally if the thread is registered from its destructor. * pthread_support.c [NACL] (GC_delete_thread): Do not call GC_nacl_shutdown_gc_thread() and do not clear GC_nacl_gc_thread_self. * pthread_support.c [NACL] (GC_unregister_my_thread_inner): Call GC_nacl_shutdown_gc_thread() and clear value of GC_nacl_gc_thread_self (after GC_destroy_thread_local). * pthread_support.c [NACL] (GC_register_my_thread): If KNOWN_FINISHED then set GC_nacl_gc_thread_self to me and call GC_nacl_initialize_gc_thread().
Diffstat (limited to 'pthread_stop_world.c')
0 files changed, 0 insertions, 0 deletions