diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2023-04-04 17:30:06 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-04 17:30:06 -0400 |
| commit | 1da2e7fca35dc697d85dd91d2572ab58d08cd3bc (patch) | |
| tree | 1583d534518f36da8678b4f048ed0eb5a5c00fa0 /test | |
| parent | 1190ec60cc3145c06cca6897b160b3e8ba2c7ecd (diff) | |
[Feature #19579] Remove !USE_RVARGC code (#7655)
Remove !USE_RVARGC code
[Feature #19579]
The Variable Width Allocation feature was turned on by default in Ruby
3.2. Since then, we haven't received bug reports or backports to the
non-Variable Width Allocation code paths, so we assume that nobody is
using it. We also don't plan on maintaining the non-Variable Width
Allocation code, so we are going to remove it.
Notes
Notes:
Merged-By: maximecb <maximecb@ruby-lang.org>
Diffstat (limited to 'test')
| -rw-r--r-- | test/-ext-/string/test_capacity.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/-ext-/string/test_capacity.rb b/test/-ext-/string/test_capacity.rb index 0cb7c00761..50f8c10f58 100644 --- a/test/-ext-/string/test_capacity.rb +++ b/test/-ext-/string/test_capacity.rb @@ -66,11 +66,7 @@ class Test_StringCapacity < Test::Unit::TestCase end def embed_header_size - if GC.using_rvargc? - 2 * RbConfig::SIZEOF['void*'] + RbConfig::SIZEOF['long'] - else - 2 * RbConfig::SIZEOF['void*'] - end + 2 * RbConfig::SIZEOF['void*'] + RbConfig::SIZEOF['long'] end def max_embed_len |
