1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* eval.c (eval): should be volatile value for GC.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2007-11-09 12:49:03 +00:00
parent 94a6c1eef9
commit 28c0aec1d8
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Fri Nov 9 21:46:28 2007 Koichi Sasada <ko1@atdot.net>
* eval.c (eval): should be volatile value for GC.
Fri Nov 9 17:48:22 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ruby.c (locale_encoding): guestimate encoding from environment

2
eval.c
View file

@ -1700,7 +1700,7 @@ eval(VALUE self, VALUE src, VALUE scope, const char *file, int line)
PUSH_TAG();
if ((state = EXEC_TAG()) == 0) {
rb_iseq_t *iseq;
VALUE iseqval;
volatile VALUE iseqval;
if (scope != Qnil) {
if (CLASS_OF(scope) == rb_cBinding) {