Project

General

Profile

« Previous | Next » 

Revision 70618a48

Added by peterzhu2118 (Peter Zhu) over 1 year ago

Fix off-by-one error for declarative marking

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)