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. --- ruby.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'ruby.c') diff --git a/ruby.c b/ruby.c index 19c38966df..f549e72fd0 100644 --- a/ruby.c +++ b/ruby.c @@ -549,12 +549,8 @@ static VALUE runtime_libruby_path(void) { #if defined _WIN32 || defined __CYGWIN__ - DWORD len, ret; -#if USE_RVARGC - len = 32; -#else - len = RSTRING_EMBED_LEN_MAX; -#endif + DWORD ret; + DWORD len = 32; VALUE path; VALUE wsopath = rb_str_new(0, len*sizeof(WCHAR)); WCHAR *wlibpath; -- cgit v1.2.3