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

ruby-changes:32744

From: ko1 <ko1@a...>
Date: Wed, 5 Feb 2014 11:49:45 +0900 (JST)
Subject: [ruby-changes:32744] ko1:r44823 (trunk): * gc.c (gc_mark_children): STR_ASSOC is no longer available.

ko1	2014-02-05 11:49:41 +0900 (Wed, 05 Feb 2014)

  New Revision: 44823

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

  Log:
    * gc.c (gc_mark_children): STR_ASSOC is no longer available.
      Reported by @nagachika.
      http://d.hatena.ne.jp/nagachika/20140204

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 44822)
+++ ChangeLog	(revision 44823)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Feb  5 11:46:42 2014  Koichi Sasada  <ko1@a...>
+
+	* gc.c (gc_mark_children): STR_ASSOC is no longer available.
+	  Reported by @nagachika.
+	  http://d.hatena.ne.jp/nagachika/20140204
+
 Wed Feb  5 11:27:22 2014  Koichi Sasada  <ko1@a...>
 
 	* string.c (rb_str_new_frozen): refactoring code.
Index: gc.c
===================================================================
--- gc.c	(revision 44822)
+++ gc.c	(revision 44823)
@@ -3866,8 +3866,7 @@ gc_mark_children(rb_objspace_t *objspace https://github.com/ruby/ruby/blob/trunk/gc.c#L3866
 	goto again;
 
       case T_STRING:
-#define STR_ASSOC FL_USER3   /* copied from string.c */
-	if (FL_TEST(obj, RSTRING_NOEMBED) && FL_ANY(obj, ELTS_SHARED|STR_ASSOC)) {
+	if (STR_SHARED_P(obj)) {
 	    ptr = obj->as.string.as.heap.aux.shared;
 	    goto again;
 	}

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

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