[ruby-cvs:71577] normal:r64485 (trunk): thread_pthread.c: reinitialize ubf_list at fork

normal at ruby-lang.org normal at ruby-lang.org
Tue Aug 21 06:34:39 JST 2018


normal	2018-08-21 06:34:39 +0900 (Tue, 21 Aug 2018)

  New Revision: 64485

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64485

  Log:
    thread_pthread.c: reinitialize ubf_list at fork
    
    It's possible for the ubf_list_head to be populated with dead
    threads at fork or the ubf_list_lock to be held, so reinitialize
    both at startup.
    
    And while we're at it, use a static initializer at startup
    to save a library call and kill some ifdef.
    
    [ruby-core:88578] [Bug #15013]

  Modified files:
    trunk/thread.c
    trunk/thread_pthread.c
    trunk/thread_win32.c


More information about the ruby-cvs mailing list