Prevent ObjectSpace.count_objects from allocating extra arrays by mame · Pull Request #13906 · ruby/ruby
ObjectSpace.count_objects could cause an unintended array allocation. It returns a hash like { :T_ARRAY => 100, :T_STRING => 100, ... }, so it creates the key symbol (e.g., :T_STRING) for the...