1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* thread.c (rb_threadptr_pending_interrupt_check_mask):

use RARRAY_RAWPTR() instead of RARRAY_PTR() because
  there is no new reference.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2013-08-08 11:00:06 +00:00
parent e0932e3ad3
commit 2391ee2c61
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
Thu Aug 8 19:58:02 2013 Koichi Sasada <ko1@atdot.net>
* thread.c (rb_threadptr_pending_interrupt_check_mask):
use RARRAY_RAWPTR() instead of RARRAY_PTR() because
there is no new reference.
Thu Aug 8 19:56:52 2013 Koichi Sasada <ko1@atdot.net>
* string.c (rb_str_format_m): use RARRAY_RAWPTR() instead of

View file

@ -1549,10 +1549,10 @@ rb_threadptr_pending_interrupt_check_mask(rb_thread_t *th, VALUE err)
{
VALUE mask;
long mask_stack_len = RARRAY_LEN(th->pending_interrupt_mask_stack);
VALUE *mask_stack = RARRAY_PTR(th->pending_interrupt_mask_stack);
const VALUE *mask_stack = RARRAY_RAWPTR(th->pending_interrupt_mask_stack);
VALUE ancestors = rb_mod_ancestors(err); /* TODO: GC guard */
long ancestors_len = RARRAY_LEN(ancestors);
VALUE *ancestors_ptr = RARRAY_PTR(ancestors);
const VALUE *ancestors_ptr = RARRAY_RAWPTR(ancestors);
int i, j;
for (i=0; i<mask_stack_len; i++) {