vmsplice: avoid referencing invalid stack address for strings
authorEric Wong <normalperson@yhbt.net>
Sat, 19 Jan 2013 03:08:06 +0000 (03:08 +0000)
committerEric Wong <normalperson@yhbt.net>
Sat, 19 Jan 2013 03:15:39 +0000 (03:15 +0000)
commit1707419f13b206fdd9d4654b03cc34d977fdedc6
tree7ba397590fd1242bb91dbf440abe809b9e088d52
parentd5dc32f3b3dd2577eb473bb8ec6c1b7533b5081e
vmsplice: avoid referencing invalid stack address for strings

Newer GCC more aggressively optimizes stack allocations away,
so we need to avoid passing out-of-scope addresses to vmsplice.
Not that vmsplice is useful in Ruby...
ext/io_splice/io_splice_ext.c