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

ruby-changes:38412

From: nagachika <ko1@a...>
Date: Fri, 15 May 2015 05:13:12 +0900 (JST)
Subject: [ruby-changes:38412] nagachika:r50493 (ruby_2_2): merge revision(s) 49842: [Backport #10933]

nagachika	2015-05-15 05:12:59 +0900 (Fri, 15 May 2015)

  New Revision: 50493

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

  Log:
    merge revision(s) 49842: [Backport #10933]
    
    * symbol.c (Init_sym): make dsym_fstrs a hash compared by identity
      as the keys are unique fstrings, to get rid of running hash and
      compare methods and causing new object allocation during garbage
      collection phase.  [ruby-dev:48891] [Bug #10933]

  Modified directories:
    branches/ruby_2_2/
  Modified files:
    branches/ruby_2_2/ChangeLog
    branches/ruby_2_2/symbol.c
    branches/ruby_2_2/version.h
Index: ruby_2_2/symbol.c
===================================================================
--- ruby_2_2/symbol.c	(revision 50492)
+++ ruby_2_2/symbol.c	(revision 50493)
@@ -122,7 +122,7 @@ static const struct st_hash_type symhash https://github.com/ruby/ruby/blob/trunk/ruby_2_2/symbol.c#L122
 void
 Init_sym(void)
 {
-    VALUE dsym_fstrs = rb_hash_new();
+    VALUE dsym_fstrs = rb_ident_hash_new();
     global_symbols.dsymbol_fstr_hash = dsym_fstrs;
     rb_gc_register_mark_object(dsym_fstrs);
     rb_obj_hide(dsym_fstrs);
Index: ruby_2_2/ChangeLog
===================================================================
--- ruby_2_2/ChangeLog	(revision 50492)
+++ ruby_2_2/ChangeLog	(revision 50493)
@@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_2/ChangeLog#L1
+Fri May 15 05:01:25 2015  Nobuyoshi Nakada  <nobu@r...>
+
+	* symbol.c (Init_sym): make dsym_fstrs a hash compared by identity
+	  as the keys are unique fstrings, to get rid of running hash and
+	  compare methods and causing new object allocation during garbage
+	  collection phase.  [ruby-dev:48891] [Bug #10933]
+
 Thu May 14 00:50:40 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* parse.y (lambda): push and reset cmdarg_stack in lambda body.
Index: ruby_2_2/version.h
===================================================================
--- ruby_2_2/version.h	(revision 50492)
+++ ruby_2_2/version.h	(revision 50493)
@@ -1,10 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_2/version.h#L1
 #define RUBY_VERSION "2.2.3"
-#define RUBY_RELEASE_DATE "2015-05-14"
-#define RUBY_PATCHLEVEL 101
+#define RUBY_RELEASE_DATE "2015-05-15"
+#define RUBY_PATCHLEVEL 102
 
 #define RUBY_RELEASE_YEAR 2015
 #define RUBY_RELEASE_MONTH 5
-#define RUBY_RELEASE_DAY 14
+#define RUBY_RELEASE_DAY 15
 
 #include "ruby/version.h"
 

Property changes on: ruby_2_2
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r49842


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

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