Skip to content
  • Peter Zhu's avatar
    e191bf42
    Fix ary_make_partial_step for compaction · e191bf42
    Peter Zhu authored
    ary could change embeddedness due to compaction, so we should only get
    the pointer after allocations.
    
    The included test was crashing with:
    
        TestArray#test_slice_gc_compact_stress
        ruby/lib/pp.rb:192: [BUG] Segmentation fault at 0x0000000000000038
    e191bf42
    Fix ary_make_partial_step for compaction
    Peter Zhu authored
    ary could change embeddedness due to compaction, so we should only get
    the pointer after allocations.
    
    The included test was crashing with:
    
        TestArray#test_slice_gc_compact_stress
        ruby/lib/pp.rb:192: [BUG] Segmentation fault at 0x0000000000000038
Loading