From 3a247f648913997c248c51c47a15fee08e5083f3 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 26 Dec 2013 05:25:08 +0000 Subject: [PATCH] hash.c: no extra states copy * hash.c (HASH_REJECT_COPY_EXTRA_STATES): turn off the old behavior, copying extra states by accident. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ hash.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f9165021c0..6ab9da7574 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Dec 26 14:25:03 2013 Nobuyoshi Nakada + + * hash.c (HASH_REJECT_COPY_EXTRA_STATES): turn off the old + behavior, copying extra states by accident. + Thu Dec 26 10:49:14 2013 Yukihiro Matsumoto * version.h (RUBY_VERSION): 2.2.0 development has started. diff --git a/hash.c b/hash.c index db70939505..004ee920e3 100644 --- a/hash.c +++ b/hash.c @@ -31,7 +31,7 @@ ((klass = has_extra_methods(rb_obj_class(hash))) != 0) || \ FL_TEST((hash), FL_EXIVAR|FL_TAINT|HASH_PROC_DEFAULT) || \ !NIL_P(RHASH_IFNONE(hash))) -#define HASH_REJECT_COPY_EXTRA_STATES 1 +#define HASH_REJECT_COPY_EXTRA_STATES 0 static VALUE has_extra_methods(VALUE klass)