Skip to content

Instantly share code, notes, and snippets.

@authorNari
Created June 29, 2010 02:41
Show Gist options
  • Save authorNari/456717 to your computer and use it in GitHub Desktop.
Save authorNari/456717 to your computer and use it in GitHub Desktop.
# http://redmine.ruby-lang.org/issues/show/3398
# http://redmine.ruby-lang.org/issues/show/1934
a = ""
1000000.times do |i|
i % 100 ? ObjectSpace.define_finalizer(a.dup, proc {}) : a.dup
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment