mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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:
parent
1190ec60cc
commit
1da2e7fca3
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
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue