Sha256: b5536b2a501cec0ad7f77a4ce909ca2f49566f9c01ca6677add84f7abbc70dbf

Contents?: true

Size: 355 Bytes

Versions: 43

Compression:

Stored size: 355 Bytes

Contents

require 'xml'

# test of bug 13310, clears MEM2

include GC

inner = XML::Node.new('inner')
save = nil
1.times do
  outer = XML::Node.new('outer')
  outer.child = inner
  1.times do
    doc = XML::Document.new
    doc.root = outer
    # Uncomment the following line and it won't crash
    save = doc
  end
  garbage_collect
end
garbage_collect
puts inner

Version data entries

43 entries across 43 versions & 7 rubygems

Version Path
libxml-jruby-modified-1.0.2-jruby test/ets_node_gc.rb
libxml-jruby-modified-1.0.1-jruby test/ets_node_gc.rb
libxml-fixed-jruby-1.0.0-jruby test/ets_node_gc.rb
libxml-jruby-fixed-1.0.0-jruby test/ets_node_gc.rb
libxml-ruby-r19mingw-1.1.4 test/ets_node_gc.rb
libxml-ruby-1.1.4 test/ets_node_gc.rb
libxml-ruby-1.1.4-x86-mswin32-60 test/ets_node_gc.rb
coupa-libxml-ruby-1.1.4 test/ets_node_gc.rb
libxml-jruby-1.0.0 test/ets_node_gc.rb
libxml-ruby-0.8.2-x86-mswin32-60 test/ets_node_gc.rb
libxml-ruby-0.8.2 test/ets_node_gc.rb
libxml-ruby-0.9.3-x86-mswin32-60 test/ets_node_gc.rb
libxml-ruby-0.9.2 test/ets_node_gc.rb
libxml-ruby-0.8.3 test/ets_node_gc.rb
libxml-ruby-0.9.1-x86-mswin32-60 test/ets_node_gc.rb
libxml-ruby-0.9.1 test/ets_node_gc.rb
libxml-ruby-0.9.0-x86-mswin32-60 test/ets_node_gc.rb
libxml-ruby-0.9.2-x86-mswin32-60 test/ets_node_gc.rb
libxml-ruby-0.9.0 test/ets_node_gc.rb
libxml-ruby-0.8.3-x86-mswin32-60 test/ets_node_gc.rb