summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-10 02:19:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-10 02:19:52 +0000
commitb72bd6c0806a2b40e99e7e73aa292e7daf2648c7 (patch)
tree186be89d1060b22a1732a411ee10aa9dabaa6d9f /ext
parent351932cb4a0d0aec0d45968b32458f41ba0bf913 (diff)
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/openssl/ossl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c
index 0446d5085be..502907791bc 100644
--- a/ext/openssl/ossl.c
+++ b/ext/openssl/ossl.c
@@ -491,7 +491,7 @@ static void Init_ossl_locks(void)
}
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);