You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: thread_local_memory_usage.rb
    path of file: ./repos/concurrent-ruby/examples
    
    the code of the file until where you have to start completion: #!/usr/bin/env ruby

#$: << File.expand_path('../../lib', __FILE__)

$DEBUG_TLV = true
require 'concurrent'
require 'concur
    
def test_thread_gc(vars)
  threads = 500.times.collect do
    Thread.new do
      vars.each do |var|
        var.value = 1
      end
    end
  end
  threads.each(&:join)
end