Actions
Bug #11185
closed[PATCH] openssl: use RB_GC_GUARD instead of volatile
Bug #11185:
[PATCH] openssl: use RB_GC_GUARD instead of volatile
Description
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:
the intent of the macro use is clear
RB_GC_GUARD only affects its call site, "volatile" generates some
extra code every time the variable is used, hurting optimization."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.
Files
Actions