ruby-changes:53528
From: normal <ko1@a...>
Date: Fri, 16 Nov 2018 07:28:09 +0900 (JST)
Subject: [ruby-changes:53528] normal:r65744 (trunk): include/ruby/ruby.h (RB_ALLOCV*): remove unnecessary GC guard
normal 2018-11-16 07:28:03 +0900 (Fri, 16 Nov 2018) New Revision: 65744 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65744 Log: include/ruby/ruby.h (RB_ALLOCV*): remove unnecessary GC guard text data bss dec hex filename 3535061 21232 72944 3629237 3760b5 ruby.before 3534141 21232 72944 3628317 375d1d ruby.after Modified files: trunk/include/ruby/ruby.h Index: include/ruby/ruby.h =================================================================== --- include/ruby/ruby.h (revision 65743) +++ include/ruby/ruby.h (revision 65744) @@ -1714,11 +1714,11 @@ rb_alloc_tmp_buffer2(volatile VALUE *sto https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L1714 #else # define RUBY_ALLOCV_LIMIT 1024 # define RB_ALLOCV(v, n) ((n) < RUBY_ALLOCV_LIMIT ? \ - (RB_GC_GUARD(v) = 0, alloca(n)) : \ + ((v) = 0, alloca(n)) : \ rb_alloc_tmp_buffer(&(v), (n))) # define RB_ALLOCV_N(type, v, n) \ ((type*)(((size_t)(n) < RUBY_ALLOCV_LIMIT / sizeof(type)) ? \ - (RB_GC_GUARD(v) = 0, alloca((size_t)(n) * sizeof(type))) : \ + ((v) = 0, alloca((size_t)(n) * sizeof(type))) : \ rb_alloc_tmp_buffer2(&(v), (long)(n), sizeof(type)))) #endif #define RB_ALLOCV_END(v) rb_free_tmp_buffer(&(v)) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/