From 1da2e7fca35dc697d85dd91d2572ab58d08cd3bc Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Tue, 4 Apr 2023 17:30:06 -0400 Subject: [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. --- include/ruby/internal/core/robject.h | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'include/ruby/internal/core/robject.h') diff --git a/include/ruby/internal/core/robject.h b/include/ruby/internal/core/robject.h index b1c2e1b0a9..dc1faad89f 100644 --- a/include/ruby/internal/core/robject.h +++ b/include/ruby/internal/core/robject.h @@ -74,17 +74,6 @@ enum ruby_robject_flags { ROBJECT_EMBED = RUBY_FL_USER1 }; -#if !USE_RVARGC -/** - * This is an enum because GDB wants it (rather than a macro). People need not - * bother. - */ -enum ruby_robject_consts { - /** Max possible number of instance variables that can be embedded. */ - ROBJECT_EMBED_LEN_MAX = RBIMPL_EMBED_LEN_MAX_OF(VALUE) -}; -#endif - struct st_table; /** @@ -118,7 +107,6 @@ struct RObject { struct rb_id_table *iv_index_tbl; } heap; -#if USE_RVARGC /* Embedded instance variables. When an object is small enough, it * uses this area to store the instance variables. * @@ -128,13 +116,6 @@ struct RObject { * 2. Zero length arrays are not supported by all compilers */ VALUE ary[1]; -#else - /** - * Embedded instance variables. When an object is small enough, it - * uses this area to store the instance variables. - */ - VALUE ary[ROBJECT_EMBED_LEN_MAX]; -#endif } as; }; -- cgit v1.2.3