From 00630e4c744e5c0eb8abbdae8e1c84a96baf6d70 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Wed, 26 Apr 2023 10:39:39 +0200 Subject: [PATCH] DEV: Remove `RUBY_GLOBAL_METHOD_CACHE_SIZE` (#21249) It doesn't do anything since ruby 3.0.0.preview1. It was removed in https://github.com/ruby/ruby/pull/2888 --- .github/workflows/tests.yml | 1 - script/bench.rb | 2 -- 2 files changed, 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5cfaeabad64..452a8906a94 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,7 +25,6 @@ jobs: env: DISCOURSE_HOSTNAME: www.example.com - RUBY_GLOBAL_METHOD_CACHE_SIZE: 131072 RAILS_ENV: test PGUSER: discourse PGPASSWORD: discourse diff --git a/script/bench.rb b/script/bench.rb index 6e10dcd1125..ba0c5abcd14 100644 --- a/script/bench.rb +++ b/script/bench.rb @@ -135,7 +135,6 @@ discourse_env_vars = %w[ RUBY_GC_MALLOC_LIMIT_GROWTH_FACTOR RUBY_GC_OLDMALLOC_LIMIT_GROWTH_FACTOR RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR - RUBY_GLOBAL_METHOD_CACHE_SIZE LD_PRELOAD ] @@ -143,7 +142,6 @@ if @include_env puts "Running with tuned environment" discourse_env_vars.each { |v| ENV.delete v } - ENV["RUBY_GLOBAL_METHOD_CACHE_SIZE"] = "131072" ENV["RUBY_GC_HEAP_GROWTH_MAX_SLOTS"] = "40000" ENV["RUBY_GC_HEAP_INIT_SLOTS"] = "400000" ENV["RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR"] = "1.5"