ruby/ext/openssl
normal 9fbf488746 openssl: use RB_GC_GUARD instead of volatile
From doc/extension.rdoc:
>
> Using the RB_GC_GUARD macro is preferable to using the "volatile"
> keyword in C.  RB_GC_GUARD has the following advantages:
>
> 1) the intent of the macro use is clear
>
> 2) RB_GC_GUARD only affects its call site, "volatile" generates some
>    extra code every time the variable is used, hurting optimization.
>
> 3) "volatile" implementations may be buggy/inconsistent in some
>    compilers and architectures. RB_GC_GUARD is customizable for broken
>    systems/compilers without those without negatively affecting other
>    systems.

* ext/openssl/ossl_asn1.c (ossl_asn1_traverse, ossl_asn1_decode,
  ossl_asn1_decode_all): use RB_GC_GUARD instead of volatile
  [ruby-core:69371] [Bug #11185]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-27 01:09:11 +00:00
..
lib * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
depend Update dependencies. 2014-12-19 13:34:54 +00:00
deprecation.rb * ext/openssl/deprecation.rb (OpenSSL.check_func): check if header is 2012-05-01 05:18:02 +00:00
extconf.rb * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
openssl_missing.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
openssl_missing.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_asn1.c openssl: use RB_GC_GUARD instead of volatile 2015-05-27 01:09:11 +00:00
ossl_asn1.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_bio.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_bio.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_bn.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_bn.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_cipher.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_cipher.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_config.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_config.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_digest.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_digest.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_engine.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_engine.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_hmac.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_hmac.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_ns_spki.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_ns_spki.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_ocsp.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_ocsp.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_pkcs5.c protoize no-arguments functions 2014-09-30 05:25:32 +00:00
ossl_pkcs5.h * ext/dl/cfunc.c (rb_dlcfunc_call): adjust format. [ruby-dev:31222] 2007-07-15 13:24:39 +00:00
ossl_pkcs7.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_pkcs7.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_pkcs12.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_pkcs12.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_pkey.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_pkey.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_pkey_dh.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_pkey_dsa.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_pkey_ec.c ossl_pkey_ec.c: typed data 2014-12-12 23:19:24 +00:00
ossl_pkey_rsa.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_rand.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_rand.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_ssl.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_ssl.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_ssl_session.c * ext/openssl/ossl.h: avoid to build failure of Windows environment. 2015-01-03 02:50:31 +00:00
ossl_version.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_x509.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_x509.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_x509attr.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_x509cert.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_x509crl.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_x509ext.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_x509name.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_x509req.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_x509revoked.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ossl_x509store.c * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00
ruby_missing.h * ext/openssl/*: use license instead of licence. 2015-04-20 03:55:09 +00:00