summaryrefslogtreecommitdiff
path: root/rjit_c.rb
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-04-04 17:30:06 -0400
committerGitHub <noreply@github.com>2023-04-04 17:30:06 -0400
commit1da2e7fca35dc697d85dd91d2572ab58d08cd3bc (patch)
tree1583d534518f36da8678b4f048ed0eb5a5c00fa0 /rjit_c.rb
parent1190ec60cc3145c06cca6897b160b3e8ba2c7ecd (diff)
downloadruby-1da2e7fca35dc697d85dd91d2572ab58d08cd3bc.tar.gz
[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.
Diffstat (limited to 'rjit_c.rb')
-rw-r--r--rjit_c.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/rjit_c.rb b/rjit_c.rb
index 843ee53295..ae79788356 100644
--- a/rjit_c.rb
+++ b/rjit_c.rb
@@ -857,6 +857,11 @@ module RubyVM::RJIT # :nodoc: all
shared: self.VALUE,
), Primitive.cexpr!("OFFSETOF(((struct RString *)NULL)->as.heap, aux)")],
),
+ embed: CType::Struct.new(
+ "", Primitive.cexpr!("SIZEOF(((struct RString *)NULL)->as.embed)"),
+ len: [CType::Immediate.parse("long"), Primitive.cexpr!("OFFSETOF(((struct RString *)NULL)->as.embed, len)")],
+ ary: [CType::Pointer.new { CType::Immediate.parse("char") }, Primitive.cexpr!("OFFSETOF(((struct RString *)NULL)->as.embed, ary)")],
+ ),
), Primitive.cexpr!("OFFSETOF((*((struct RString *)NULL)), as)")],
)
end