Sha256: 7676fb149dd8e60d5e2b24285c4bcb191176288a9bdaca72a64f265729b0f845

Contents?: true

Size: 433 Bytes

Versions: 101

Compression:

Stored size: 433 Bytes

Contents

require 'test/unit'
require 'rjb'

class TestRjbGC < Test::Unit::TestCase
  include Rjb
  def setup
    load(nil, ['-verbose:gc'])
  end

  def tearDown
    unload
  end

  def test_gc
    stringBuffer = import('java.lang.StringBuffer')
    (0..1000).each do |i|
      sb = stringBuffer.new
      (0..1000).each do |j|
	sb.append('                                                        ')
      end
      GC.start
    end
  end
end

Version data entries

101 entries across 101 versions & 1 rubygems

Version Path
rjb-1.7.3 test/gctest.rb
rjb-1.7.1 test/gctest.rb
rjb-1.7.0 test/gctest.rb
rjb-1.6.9 test/gctest.rb
rjb-1.6.8 test/gctest.rb
rjb-1.6.7 test/gctest.rb
rjb-1.6.6 test/gctest.rb
rjb-1.6.5 test/gctest.rb
rjb-1.6.4 test/gctest.rb
rjb-1.6.3 test/gctest.rb
rjb-1.6.2 test/gctest.rb
rjb-1.6.1 test/gctest.rb
rjb-1.6.0 test/gctest.rb
rjb-1.5.9 test/gctest.rb
rjb-1.5.8 test/gctest.rb
rjb-1.5.7 test/gctest.rb
rjb-1.5.6 test/gctest.rb
rjb-1.5.5 test/gctest.rb
rjb-1.5.4 test/gctest.rb
rjb-1.5.3 test/gctest.rb