[ruby-cvs:70461] mame:r63371 (trunk): gc.c (rb_imemo_alloc_new): split for each purpose

mame at ruby-lang.org mame at ruby-lang.org
Wed May 9 16:08:53 JST 2018


mame	2018-05-09 16:08:53 +0900 (Wed, 09 May 2018)

  New Revision: 63371

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

  Log:
    gc.c (rb_imemo_alloc_new): split for each purpose
    
    imemo_alloc is used for three purposes: auto-free pointer (alternative
    of alloca), alloc_tmp_buffer, and heap allocation for bison.
    To make it clear, this change introduces three functions:
    rb_imemo_alloc_auto_free_pointer,
    rb_imemo_alloc_auto_free_maybe_mark_buffer, and
    rb_imemo_alloc_parser_heap.

  Modified files:
    trunk/gc.c
    trunk/internal.h
    trunk/parse.y


More information about the ruby-cvs mailing list