Permalink
Browse files

Tweak frequent GC warning

  • Loading branch information...
1 parent 8962079 commit 24dd7afea1d94bd163fb90e8afbc78addf03c28d @ileitch committed Feb 14, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/hijack/gdb.rb
  2. +1 −1 test/test.rb
View
@@ -49,7 +49,7 @@ def attach_outside_gc
unless attached
puts
puts "=> Tried 3 times to attach to #{@pid} whilst GC wasn't running but failed."
- puts "=> This means either the process calls GC.start frequently or its GC runs are slow - try hijacking again."
+ puts "=> This means either the process calls GC.start frequently or GC runs are slow - try hijacking again."
exit 1
end
View
@@ -12,7 +12,7 @@ def do_shit(i)
t = Thread.new do
i = 0
loop do
- sleep 0.3
+ Array.new(1000000).collect {|i| "#{i}"}
do_shit(i+=1)
end
end

0 comments on commit 24dd7af

Please sign in to comment.