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

ruby-changes:29829

From: nobu <ko1@a...>
Date: Wed, 10 Jul 2013 11:20:05 +0900 (JST)
Subject: [ruby-changes:29829] nobu:r41881 (trunk): ossl.c: rb_gc_register_mark_object

nobu	2013-07-10 11:19:52 +0900 (Wed, 10 Jul 2013)

  New Revision: 41881

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

  Log:
    ossl.c: rb_gc_register_mark_object
    
    * ext/openssl/ossl.c (Init_ossl_locks): use rb_gc_register_mark_object
      instead of rb_global_variable.  probably RArray may be used.

  Modified files:
    trunk/ext/openssl/ossl.c

Index: ext/openssl/ossl.c
===================================================================
--- ext/openssl/ossl.c	(revision 41880)
+++ ext/openssl/ossl.c	(revision 41881)
@@ -491,7 +491,7 @@ static void Init_ossl_locks(void) https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl.c#L491
     }
     for (i = 0; i < num_locks; i++) {
 	ossl_locks[i] = rb_mutex_new();
-	rb_global_variable(&(ossl_locks[i]));
+	rb_gc_register_mark_object(ossl_locks[i]);
     }
 
     CRYPTO_set_id_callback((unsigned long (*)())ossl_thread_id);

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

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