# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev # Please include the string: [perl #131829] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=131829 >
Code: say (1…∞).grep(* < 0)[^10] Given that all of the values are thrown away by grep, I expect the memory usage to be constant (even though the code will never finish). However, it seems that there's a leak somewhere. There's a lot to this, so please see IRC log: https://irclog.perlgeek.de/perl6-dev/2017-08-02#i_14956475 For example, gather-take seems to be leaking as well, and in some cases it doesn't leak if you remove map, or if you use a range instead of a sequence…