From e45e06410dd36e313ea3456ba406e31f66034a2e Mon Sep 17 00:00:00 2001 From: charliesome Date: Wed, 6 Feb 2013 13:46:26 +0000 Subject: [PATCH] * hash.c (env_reject_bang): hide keys array from ObjectSpace * hash.c (env_select_bang): ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ hash.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index b14b9286dd..a1bb258244 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Feb 6 22:25:00 2013 Charlie Somerville + + * hash.c (env_reject_bang): hide keys array from ObjectSpace + * hash.c (env_select_bang): ditto + Wed Feb 6 17:33:01 2013 Nobuyoshi Nakada * configure.in (multiarch): add option to move architecture dependent diff --git a/hash.c b/hash.c index 48201b6e60..a2261bdf93 100644 --- a/hash.c +++ b/hash.c @@ -2713,6 +2713,7 @@ env_reject_bang(VALUE ehash) RETURN_SIZED_ENUMERATOR(ehash, 0, 0, rb_env_size); keys = env_keys(); /* rb_secure(4); */ + RBASIC(keys)->klass = 0; for (i=0; iklass = 0; for (i=0; i