Skip to content
  • Peter Zhu's avatar
    70618a48
    Fix off-by-one error for declarative marking · 70618a48
    Peter Zhu authored
    The for loops for marking and reference updating declaratively marked
    TypedData objects did not mark/reference update the very last element.
    
    When RGENGC_CHECK_MODE is turned on, this caused the test in Enumerator
    to fail with:
    
        tool/lib/test/unit/testcase.rb:173:in `rescue in run': failed to allocate memory (NoMemoryError)
    70618a48
    Fix off-by-one error for declarative marking
    Peter Zhu authored
    The for loops for marking and reference updating declaratively marked
    TypedData objects did not mark/reference update the very last element.
    
    When RGENGC_CHECK_MODE is turned on, this caused the test in Enumerator
    to fail with:
    
        tool/lib/test/unit/testcase.rb:173:in `rescue in run': failed to allocate memory (NoMemoryError)
Loading