ruby/test
Kevin Newton 194584f202 [ruby/yarp] Introduce owned constants
Before this commit, constants in the constant pool were assumed to
be slices of the source string. This works in _almost_ all cases.

There are times, however, when a string needs to be synthesized.
This can occur when passing in locals that need to be scoped through
eval, or when generating method names like `foo=`.

After this commit, there is a single bit `owned` boolean on
constants in the pool that indicates whether or not it is a slice
of the source string. If it is not, it is assumed to be allocated
memory that should be freed by the constant pool when the constant
pool is freed.

When serializing, the most significant bit in the location of the
contents of the constant indicates whether or not it is owned.
When it is, instead of 4 bytes for the source offset and 4 bytes
for the length it is instead 4 bytes for the buffer offset and 4
bytes the length. The contents of the owned constants are embedded
into the buffer after the constant pool itself.

https://github.com/ruby/yarp/commit/461c047365
2023-09-07 14:01:21 +00:00
..
-ext- Remove --disable-gems in assert_in_out_err 2023-08-28 15:05:19 -04:00
.excludes Prefix `excludes` with a dot to prevent chkbuild from firing wrongly 2023-08-13 15:23:54 +09:00
base64
benchmark
bigdecimal Move bsearch test with Bigdecimal under the test_bigdecimal.rb 2023-07-13 14:01:28 +09:00
cgi [ruby/cgi] Add TruffleRuby support and add it in CI 2023-05-29 19:33:38 +00:00
coverage Revert "Don't reset line coverage for evaled code. (#8330)" 2023-09-04 19:52:08 +09:00
csv [ruby/csv] Fix a bug that the same line is used multiple times 2023-06-28 16:37:10 +09:00
date [ruby/date] Implement Date#deconstruct_keys and DateTime#deconstruct_keys 2022-12-13 19:52:06 +00:00
did_you_mean [ruby/did_you_mean] Support the new message format of NameError in 2023-02-19 07:10:47 +00:00
digest [ruby/digest] Ignore test_ractor.rb on non-Ractor ruby 2022-07-21 11:45:48 +09:00
drb s/MJIT/RJIT/ 2023-03-06 23:44:01 -08:00
dtrace
erb [ruby/erb] Fix line numbers after multi-line <%# 2022-11-29 04:56:03 +00:00
error_highlight [ruby/error_highlight] Support the new message format of NameError in Ruby 3.3 2023-02-19 10:29:56 +00:00
etc
fiber Reduce number of iterations in `TestFiberScheduler#test_autoload`. (#8391) 2023-09-07 13:53:51 +12:00
fiddle [ruby/fiddle] Add support for bool 2023-08-02 18:17:18 +09:00
fileutils [ruby/fileutils] Add mkdir_p to FileUtils.install 2023-02-10 03:37:39 +00:00
io [ruby/io-console] Avoid the influence of special variable `$/` 2023-08-18 03:55:04 +00:00
irb [ruby/irb] Improve help/show_cmds message during debugger 2023-08-29 18:36:16 +00:00
json Prevent a warning: method redefined; discarding old included 2023-09-05 17:29:53 +09:00
lib Add description to the empty test file [ci skip] 2023-08-15 12:49:05 +09:00
logger [ruby/logger] Add Logger#with_level{...} for block-scoped log level. 2023-02-10 01:08:49 +00:00
mkmf mkmf: Add the extra option `--with-verbose` to enable verbose mode. (#7863) 2023-05-29 10:09:32 +02:00
monitor
net s/mjit/rjit/ 2023-03-06 23:44:01 -08:00
nkf
objspace Move the PC regardless of the leaf flag (#8232) 2023-08-16 20:28:33 -07:00
open-uri [ruby/open-uri] Close leaked files 2023-08-24 05:14:56 +00:00
openssl Use the test-unit-ruby-core gem for Test::Unit::CoreAssertions 2023-09-06 19:51:53 +09:00
optparse [ruby/optparse] Add symbolize_names to getopts 2022-12-26 15:09:21 +09:00
ostruct
pathname
psych [ruby/psych] Skip BigDecimal tests when it's missing to load 2023-07-18 02:55:47 +00:00
rdoc [ruby/rdoc] Omit descriptions and parameter lists for methods defined in C not mentioned in call-seq 2023-09-05 00:45:42 +00:00
reline [ruby/reline] Remove Timeout usage 2023-08-20 10:40:55 +00:00
resolv [ruby/resolv] Do not compress domain name in SRV RDATA 2023-04-08 14:16:59 +00:00
rinda s/MJIT/RJIT/ 2023-03-06 23:44:01 -08:00
ripper [Bug #19851] Ripper: Hide internal block argument ID 2023-08-26 02:08:53 +09:00
ruby [Bug #19549] Check for variables to be interpolated 2023-09-07 13:41:13 +09:00
rubygems [rubygems/rubygems] Confirm verification warnings 2023-08-21 04:46:08 +00:00
set Move test files of ruby/set under `test/set` 2023-08-13 15:24:58 +09:00
socket TestSocket_UNIXSocket: stop testing empty packets 2023-08-31 16:43:58 +02:00
stringio jruby: Add StringIO::VERSION (#59) 2023-08-29 18:15:05 +09:00
strscan [ruby/strscan] Sync missed commit 2023-07-27 09:42:42 -04:00
syslog
uri [ruby/uri] Fix quadratic backtracking on invalid port number 2023-06-29 01:07:52 +00:00
win32ole [ruby/win32ole] Skip test failure with mswin platform 2023-03-29 04:00:22 +00:00
yaml Relax the timeout of a YAML test 2022-12-01 15:37:41 -08:00
yarp [ruby/yarp] Introduce owned constants 2023-09-07 14:01:21 +00:00
zlib [ruby/zlib] Zlib.gunzip should not fail with utf-8 strings 2023-08-10 20:12:21 +00:00
runner.rb Use the built bundled gems in test-all as well as test-bundled-gems 2022-12-09 02:20:16 +09:00
test_abbrev.rb
test_delegate.rb [ruby/delegate] Revert "Fix `DelegateClass` block "method redefined" warning" 2022-12-01 08:08:02 +00:00
test_extlibs.rb Removed racc/cparse checking 2023-06-08 17:25:38 +09:00
test_find.rb
test_forwardable.rb
test_getoptlong.rb
test_ipaddr.rb [ruby/ipaddr] Consider IPv4-mapped IPv6 addresses private if IPv4 address is private 2023-06-22 16:40:46 +00:00
test_mutex_m.rb [ruby/mutex_m] Avoid anonymous eval 2023-01-12 05:41:59 +00:00
test_observer.rb
test_open3.rb Removed to load jit_support.rb 2023-03-14 12:51:58 +09:00
test_pp.rb [ruby/pp] Remove patch added for Ruby 2.6/JRuby 9.3 2023-04-25 23:21:58 +00:00
test_prettyprint.rb
test_pstore.rb [ruby/pstore] Emphasize keys instead of roots, values instead of objects (https://github.com/ruby/pstore/pull/7) 2022-07-07 07:05:01 +09:00
test_pty.rb
test_rbconfig.rb mkconfig: Map `includedir` only for system ruby 2023-01-31 06:33:16 +09:00
test_securerandom.rb
test_shellwords.rb
test_singleton.rb [ruby/singleton] Simplify implementation of `Singleton#instance`. 2023-06-05 04:29:37 +00:00
test_syslog.rb
test_tempfile.rb Remove --disable-gems in assert_in_out_err 2023-08-28 15:05:19 -04:00
test_time.rb [ruby/time] Test for quadratic backtracking on invalid time 2023-03-30 10:44:37 +00:00
test_timeout.rb [ruby/timeout] Test that work is done in the same thread/fiber as 2023-07-03 09:26:43 +00:00
test_tmpdir.rb [ruby/tmpdir] [Bug #18933] Make `Dir.mktmpdir` Ractor-safe 2023-07-03 05:47:43 +00:00
test_trick.rb Prevent a warning: global variable `$VERSION' not initialized 2023-08-09 15:35:16 +09:00
test_tsort.rb
test_unicode_normalize.rb Prefer to use File.readlines instead of IO.readlines 2023-02-27 18:49:18 +09:00
test_weakref.rb