iseq.c (iseq_data_to_ary): add missing GC guard
It seems possible for a compiler to optimize away nbody because we only access it via RARRAY_AREF and RARRAY_LEN macros. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9c6deac2d1
commit
a7361f9c64
@ -1,3 +1,7 @@
|
|||||||
|
Thu Nov 27 11:45:33 2014 Eric Wong <e@80x24.org>
|
||||||
|
|
||||||
|
* iseq.c (iseq_data_to_ary): add missing GC guard
|
||||||
|
|
||||||
Thu Nov 27 10:51:59 2014 Koichi Sasada <ko1@atdot.net>
|
Thu Nov 27 10:51:59 2014 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* vm_core.h: add rb_thread_t::local_storage_recursive_hash
|
* vm_core.h: add rb_thread_t::local_storage_recursive_hash
|
||||||
|
1
iseq.c
1
iseq.c
@ -1889,6 +1889,7 @@ iseq_data_to_ary(rb_iseq_t *iseq)
|
|||||||
rb_ary_push(body, ary);
|
rb_ary_push(body, ary);
|
||||||
pos += RARRAY_LENINT(ary); /* reject too huge data */
|
pos += RARRAY_LENINT(ary); /* reject too huge data */
|
||||||
}
|
}
|
||||||
|
RB_GC_GUARD(nbody);
|
||||||
|
|
||||||
st_free_table(labels_table);
|
st_free_table(labels_table);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user