1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
nobu 5714a26b90 switching hash removal
* st.h (struct st_hash_type): Remove strong_hash.
  (struct st_table): Remove inside_rebuild_p and curr_hash.
* st.c (do_hash): Use type->hash instead of curr_hash.
  (make_tab_empty): Remove setting up curr_hash.
  (st_init_table_with_size): Remove setting up inside_rebuild_p.
  (rebuild_table): Remove clearing inside_rebuild_p.
  (reset_entry_hashes, HIT_THRESHOULD_FOR_STRONG_HASH): Remove code
  recognizing a denial attack and switching to strong hash.
* hash.c (rb_dbl_long_hash, rb_objid_hash, rb_ident_hash): Use
  rb_hash_start to randomize the hash.
  (str_seed): Remove.
  (any_hash): Remove strong_p and use always rb_str_hash for
  strings.
  (any_hash_weak, rb_any_hash_weak): Remove.
  (st_hash_type objhash): Remove rb_any_hash_weak.

based on the patch by Vladimir N Makarov <vmakarov@redhat.com> at
[ruby-core:78490].  [Bug #13002]

* test/ruby/test_hash.rb (test_wrapper): objects other than special
  constants should be able to be wrapped.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-12-06 04:43:48 +00:00
..
-ext- test_fstring.rb: fix exception 2016-11-12 13:24:23 +00:00
base64
benchmark
bigdecimal
cgi
coverage
csv
date
dbm
digest
drb
dtrace
erb
etc
excludes
fiddle
fileutils test_fileutils.rb: fix deadlock 2016-11-24 03:01:59 +00:00
gdbm
io
irb
json
lib Remove closed checks and use &. 2016-12-05 12:35:03 +00:00
logger logger.rb: fix next rotate time 2016-11-16 06:59:42 +00:00
matrix
minitest
misc
mkmf
monitor
net Specify the socktype explicitly. 2016-12-04 05:05:54 +00:00
nkf
objspace
open-uri open-uri: don't use OpenSSL::TestUtils from open-uri tests 2016-11-29 15:48:46 +00:00
openssl openssl: import fixes from upstream 2016-12-01 04:42:10 +00:00
optparse
ostruct
pathname Pathname#empty? implemented. 2016-11-05 03:29:08 +00:00
psych
rdoc * lib/rdoc/*, test/rdoc/*: Update rdoc-5.0.0 2016-11-05 09:18:10 +00:00
readline Supress warnings. 2016-11-30 01:22:05 +00:00
resolv fix Resolv::LOC::Coord.create. 2016-11-05 15:19:21 +00:00
rexml
rinda * test/rinda/test_rinda.rb (test_make_socket_ipv6_multicast, 2016-11-06 03:04:33 +00:00
ripper test_files.rb: sample size 2016-11-10 07:47:43 +00:00
rss
ruby switching hash removal 2016-12-06 04:43:48 +00:00
rubygems object.c: no TypeError at special const dup 2016-11-27 11:07:27 +00:00
scanf
sdbm
shell
socket
stringio stringio: chomp option 2016-12-03 11:01:25 +00:00
strscan
syslog
testunit
thread Fix regexp and typo 2016-11-15 15:04:56 +00:00
uri
webrick webrick: don't use OpenSSL::TestUtils from webrick tests 2016-11-29 15:48:47 +00:00
win32ole
yaml
zlib
colors
runner.rb
test_abbrev.rb
test_cmath.rb
test_delegate.rb
test_find.rb
test_forwardable.rb * test/test_forwardable.rb (TestForwardable#test_on_private_method): add test for [Bug #12782] [Bug #12840] 2016-10-31 08:43:54 +00:00
test_ipaddr.rb IPAddr#== and IPAddr#<=> no longer raise an exception if coercion fails 2016-11-05 13:53:38 +00:00
test_mathn.rb round-down 2016-11-25 06:28:00 +00:00
test_mutex_m.rb
test_observer.rb
test_open3.rb
test_pp.rb
test_prettyprint.rb
test_prime.rb
test_pstore.rb
test_pty.rb
test_rbconfig.rb
test_securerandom.rb
test_set.rb Add Set#compare_by_identity and Set#compare_by_identity? 2016-11-05 09:23:14 +00:00
test_shellwords.rb Fix the handling of the backslash in double quotes 2016-11-05 04:58:48 +00:00
test_singleton.rb
test_syslog.rb
test_tempfile.rb
test_time.rb Time.parse's "now" argument as nil works again. 2016-11-05 14:03:34 +00:00
test_timeout.rb
test_tmpdir.rb
test_tracer.rb
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb
test_win32api.rb