ruby/test
Peter Zhu 6c252912af Memory leak when duplicating identhash
[Bug #20145]

Before this commit, both copy_compare_by_id and hash_copy will create a
copy of the ST table, so the ST table created in copy_compare_by_id will
be leaked.

    h = { 1 => 2 }.compare_by_identity

    10.times do
      1_000_000.times do
        h.select { false }
      end

      puts `ps -o rss= -p #{$$}`
    end

Before:

    110736
    204352
    300272
    395520
    460704
    476736
    542000
    604704
    682624
    770528

After:

    15504
    16048
    16144
    16256
    16320
    16320
    16752
    16752
    16752
    16752
2024-01-04 11:25:31 -05:00
..
-ext- Fix use of the rb_profile_frames start parameter 2023-12-28 08:58:21 -08:00
.excludes M:N thread scheduler for Ractors 2023-10-12 14:47:01 +09:00
base64
benchmark
bigdecimal
cgi [ruby/cgi] Add failing test cases for CGI::Escape.unescapeHTML 2023-11-30 08:19:28 +00:00
coverage Fix method coverage comparisons 2023-10-16 09:48:05 +09:00
csv [ruby/csv] Add CSV::InvalidEncodingError 2023-10-03 16:13:18 +09:00
date
did_you_mean
digest
drb [ruby/drb] Support :SSL{Min,Max}Version config options 2023-10-18 21:13:21 +00:00
dtrace
erb
error_highlight
etc
fiber Replace SocketError with Socket::ResolutionError in rsock_raise_socket_error 2023-11-30 13:27:19 +09:00
fiddle suppress a warning 2023-12-25 22:15:25 +09:00
fileutils
io Skip an unstable test on MinGW 2023-12-13 09:40:54 -08:00
irb [ruby/irb] Avoid completing empty input 2024-01-03 13:47:51 +00:00
json [flori/json] cosmetics 2023-12-05 12:04:11 +09:00
lib Skip a test that is flaky with RJIT 2023-11-03 22:18:16 -07:00
logger
mkmf
monitor ensure to restart antoher thread 2023-12-23 05:56:02 +09:00
net [ruby/net-http] Renew test certificates 2024-01-01 11:51:15 +00:00
nkf
objspace Skip a flaky objspace test on Visual Studio 2023-12-07 09:42:56 -08:00
open-uri [ruby/open-uri] Set default for max_redirects and add exception class 2023-12-07 07:00:54 +00:00
openssl Fix test_pkey_dh.rb in FIPS. 2023-11-25 10:12:28 +00:00
optparse
ostruct [ruby/ostruct] Emit a performance warning when OpenStruct is used 2023-09-29 06:48:55 +00:00
pathname
prism [ruby/prism] Fix parsing pinned local variable pattern for numbered parameter 2024-01-03 17:20:33 +00:00
psych [ruby/psych] Typofix by misspell 2023-12-25 21:12:49 +09:00
rdoc [ruby/rdoc] Allow empty name rdoc-ref as a local link 2023-12-31 15:19:50 +00:00
reline [ruby/reline] Fix pasting tab-indented code crash 2024-01-04 11:53:06 +00:00
resolv [ruby/resolv] Close leaked FD 2023-11-26 01:07:21 +00:00
rinda
ripper [Bug #19838] Flush delayed token nonconsecutive with the next token 2023-12-02 02:41:39 +09:00
ruby Memory leak when duplicating identhash 2024-01-04 11:25:31 -05:00
rubygems [rubygems/rubygems] Bump rb-sys 2024-01-03 14:15:06 +00:00
set
socket Prevent a warning: assigned but unused variable - status 2023-12-12 10:31:37 +09:00
stringio [ruby/stringio] Add missing row separator encoding conversion 2023-11-08 00:46:17 +00:00
strscan
syslog
uri
win32ole
yaml
zlib [ruby/zlib] Revert "Workaround: Fix test failures on Ubuntu jammy s390x." 2023-09-29 16:14:29 +00:00
runner.rb Refactor the settings of test-all out 2023-11-15 19:27:10 +09:00
test_abbrev.rb
test_delegate.rb
test_extlibs.rb
test_find.rb
test_forwardable.rb
test_getoptlong.rb
test_ipaddr.rb [ruby/ipaddr] Consider IPv4-mapped IPv6 addresses link local/loopback if IPV4 address is private 2023-12-25 21:12:49 +09:00
test_mutex_m.rb
test_observer.rb
test_open3.rb
test_pp.rb
test_prettyprint.rb
test_pstore.rb
test_pty.rb
test_rbconfig.rb
test_securerandom.rb
test_shellwords.rb
test_singleton.rb
test_syslog.rb
test_tempfile.rb [ruby/tempfile] Make Tempfile#open return the underlying File 2023-11-08 16:47:29 +00:00
test_time.rb
test_timeout.rb Prevent a warning: assigned but unused variable - raised_exception 2023-11-08 15:39:19 +09:00
test_tmpdir.rb
test_trick.rb
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb