aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--eval.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5b3952c358..0390141dd4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/eval.c b/eval.c
index acb2af19ba..2f6300bdb7 100644
--- a/eval.c
+++ b/eval.c
@@ -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) {