[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.
This commit is contained in:
Peter Zhu 2023-04-04 17:30:06 -04:00 committed by GitHub
parent 1190ec60cc
commit 1da2e7fca3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2023-04-04 21:30:35 +00:00
Merged-By: maximecb <maximecb@ruby-lang.org>
18 changed files with 17 additions and 320 deletions

View file

@ -3768,11 +3768,8 @@ econv_primitive_convert(int argc, VALUE *argv, VALUE self)
rb_str_modify(output);
if (NIL_P(output_bytesize_v)) {
#if USE_RVARGC
output_bytesize = rb_str_capacity(output);
#else
output_bytesize = RSTRING_EMBED_LEN_MAX;
#endif
if (!NIL_P(input) && output_bytesize < RSTRING_LEN(input))
output_bytesize = RSTRING_LEN(input);
}