Skip to content

A platform for community discussion. Free, open, simple.

DEV: Remove `RUBY_GLOBAL_METHOD_CACHE_SIZE` (#21249)

Jarek Radosz00630e4c744e
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"