prevent potential premature GC in byte_xs
authorEric Wong <normalperson@yhbt.net>
Sat, 15 Feb 2014 22:29:49 +0000 (22:29 +0000)
committerEric Wong <normalperson@yhbt.net>
Sat, 15 Feb 2014 22:29:49 +0000 (22:29 +0000)
commita3562a9a200a1ffd31c472652265bbb234589eb0
treeaa1b36f5cee34fac92415da1b3b192a9fc6b1ead
parent115bbc59f6277c005fe3dbb6d1e192464bb0821d
prevent potential premature GC in byte_xs

If we convert an object to string, there is a potential the
compiler may optimize away the converted string if escaping
is needed.  Prevent that with RB_GC_GUARD.
ext/clogger_ext/clogger.c