Project

General

Profile

« Previous | Next » 

Revision 5e11de65

Added by ko1 (Koichi Sasada) about 7 years ago

make RARRAY_PTR_USE more conservertive.

  • include/ruby/ruby.h: de-transient at
    RARRAY_PTR_USE and RARRAY_PTR_USE_START.
    Introduce RARRAY_PTR_USE_TRANSIENT and
    RARRAY_PTR_USE_START_TRANSIENT if you don't want to
    de-transient an array. Generally, it is difficult
    so C-extension writers should not use them.

  • array.c: use RARRAY_PTR_USE_TRANSIENT if possible.

  • hash.c: ditto.

  • enum.c (enum_sort_by): remove rb_ary_transient_heap_evacuate()
    because RARRAY_PTR_USE do de-transient.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e