From 343b2aa615b109ea6891326f45a465e90233bbeb Mon Sep 17 00:00:00 2001 From: nagachika Date: Sat, 15 Aug 2015 18:10:16 +0000 Subject: merge revision(s) 51410: [Backport #11396] * symbol.h (struct RSymbol): add hashval field * symbol.c (dsymbol_alloc): setup hashval field once * hash.c (rb_any_hash): return RSymbol->hashval directly * common.mk: hash.o depends on symbol.h Thanks to Bruno Escherl for the bug report [ruby-core:70129] [Bug #11396] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@51589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- symbol.h | 1 + 1 file changed, 1 insertion(+) (limited to 'symbol.h') diff --git a/symbol.h b/symbol.h index 549eabdf61..5c52b9742b 100644 --- a/symbol.h +++ b/symbol.h @@ -25,6 +25,7 @@ struct RSymbol { struct RBasic basic; + st_index_t hashval; VALUE fstr; ID id; }; -- cgit v1.2.3