[ruby-core:115153] [Ruby master Bug#19969] Regression of memory usage with Ruby 3.1