Project

General

Profile

« Previous | Next » 

Revision cbd8b099

Added by tmm1 (Aman Karmani) almost 11 years ago

iseq: reduce array allocations for simple sequences

  • compile.c (iseq_add_mark_object): Use new rb_iseq_add_mark_object().

  • insns.def (setinlinecache): Ditto.

  • iseq.c (rb_iseq_add_mark_object): New function to allocate
    iseq->mark_ary on demand. [Bug #8142]

  • iseq.h (rb_iseq_add_mark_object): Ditto.

  • iseq.c (prepare_iseq_build): Avoid allocating mark_ary until needed.

  • iseq.c (rb_iseq_build_for_ruby2cext): Ditto.

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