linux_inet_diag: improve compatibility with newer GCsgc-next
commit00c12544492d40d98afd46e4995d1c45a850535e
authorEric Wong <normalperson@yhbt.net>
Sun, 16 Jun 2013 20:54:55 +0000 (16 20:54 +0000)
committerEric Wong <normalperson@yhbt.net>
Sun, 16 Jun 2013 20:54:55 +0000 (16 20:54 +0000)
tree037f80313e76ac9704740998445587734b55ffe0
parentfdda1473240485b7e996e425ed1a46ce0e50174e
linux_inet_diag: improve compatibility with newer GCs

RARRAY_PTR is expensive with GCs in Ruby 2.1.0dev and Rubinius, so
use rb_ary_entry for non-performance critical paths.  Eventually,
RARRAY_AREF/RARRAY_ASET may be common, but for now, using
rb_ary_entry should require the least cognitive overhead for a
developer.
ext/raindrops/linux_inet_diag.c