Skip to content

Combination of Array#zip and Array#cycle result in OOM #482

@isaiah

Description

@isaiah
irb(main):001:0> [1,2].zip([0].cycle)
Java::JavaLang::OutOfMemoryError: Java heap space

while enumerator version

[1,2].to_enum.zip([0].cycle)

works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions