[前][次][番号順一覧][スレッド一覧]

ruby-changes:30375

From: ko1 <ko1@a...>
Date: Thu, 8 Aug 2013 20:00:19 +0900 (JST)
Subject: [ruby-changes:30375] ko1:r42444 (trunk): * thread.c (rb_threadptr_pending_interrupt_check_mask):

ko1	2013-08-08 20:00:06 +0900 (Thu, 08 Aug 2013)

  New Revision: 42444

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42444

  Log:
    * thread.c (rb_threadptr_pending_interrupt_check_mask):
      use RARRAY_RAWPTR() instead of RARRAY_PTR() because
      there is no new reference.

  Modified files:
    trunk/ChangeLog
    trunk/thread.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42443)
+++ ChangeLog	(revision 42444)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Aug  8 19:58:02 2013  Koichi Sasada  <ko1@a...>
+
+	* 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@a...>
 
 	* string.c (rb_str_format_m): use RARRAY_RAWPTR() instead of
Index: thread.c
===================================================================
--- thread.c	(revision 42443)
+++ thread.c	(revision 42444)
@@ -1549,10 +1549,10 @@ rb_threadptr_pending_interrupt_check_mas https://github.com/ruby/ruby/blob/trunk/thread.c#L1549
 {
     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++) {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]