[ruby-cvs:70303] normal:r63213 (trunk): simplify altstack and enable reuse with thread cache

normal at ruby-lang.org normal at ruby-lang.org
Sat Apr 21 06:38:27 JST 2018


normal	2018-04-21 06:38:27 +0900 (Sat, 21 Apr 2018)

  New Revision: 63213

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

  Log:
    simplify altstack and enable reuse with thread cache
    
    Instead of allocating and registering the altstack in different
    places, do it together to reduce code and improve readability.
    When thread cache is enabled, storing altstack in rb_thread_t
    is wasteful and we may reuse altstack in the same pthread.
    
    This also lets us clearly allow use of xmalloc to allow GC to
    recover from ENOMEM.
    
    [ruby-core:85621] [Feature #14487]

  Modified files:
    trunk/gc.c
    trunk/internal.h
    trunk/signal.c
    trunk/thread.c
    trunk/thread_pthread.c
    trunk/vm.c
    trunk/vm_core.h


More information about the ruby-cvs mailing list