summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-01 08:10:49 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-01 08:10:49 +0000
commitf2c6107ad4b076fcec7077830033f505aae9c435 (patch)
treef45063908623427dce443429bb106e475b16597e /eval.c
parent7e0cb3d7356f47a8473eae7094c4bc135bccebd0 (diff)
downloadruby-f2c6107ad4b076fcec7077830033f505aae9c435.tar.gz
ruby-f2c6107ad4b076fcec7077830033f505aae9c435.tar.xz
ruby-f2c6107ad4b076fcec7077830033f505aae9c435.zip
matz
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index b485cf8ca..04b922a66 100644
--- a/eval.c
+++ b/eval.c
@@ -801,7 +801,8 @@ static rb_thread_t curr_thread = 0;
if (!(ruby_scope->flag & SCOPE_MALLOC)) {\
ruby_scope->local_vars = 0; \
ruby_scope->local_tbl = 0; \
- if (ruby_scope != top_scope) { \
+ if (!(ruby_scope->flag & SCOPE_DONT_RECYCLE) && \
+ ruby_scope != top_scope) { \
rb_gc_force_recycle((VALUE)ruby_scope);\
} \
} \