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

ruby-changes:39368

From: nobu <ko1@a...>
Date: Thu, 30 Jul 2015 16:56:23 +0900 (JST)
Subject: [ruby-changes:39368] nobu:r51449 (trunk): thread.c: identity hash

nobu	2015-07-30 16:56:02 +0900 (Thu, 30 Jul 2015)

  New Revision: 51449

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

  Log:
    thread.c: identity hash
    
    * thread.c (rb_uninterruptible): use identity hash for masking.

  Modified files:
    trunk/thread.c
Index: thread.c
===================================================================
--- thread.c	(revision 51448)
+++ thread.c	(revision 51449)
@@ -5275,7 +5275,7 @@ rb_reset_coverages(void) https://github.com/ruby/ruby/blob/trunk/thread.c#L5275
 VALUE
 rb_uninterruptible(VALUE (*b_proc)(ANYARGS), VALUE data)
 {
-    VALUE interrupt_mask = rb_hash_new();
+    VALUE interrupt_mask = rb_ident_hash_new();
     rb_thread_t *cur_th = GET_THREAD();
 
     rb_hash_aset(interrupt_mask, rb_cObject, sym_never);

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

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