New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rapidly growing RAM usage when interpolating codeblock in regexes #5632
Comments
From @zoffixznetThis program starts off at 140MB and rapidly grows to 1.7GB of used RAM by the 1000th iteration: perl6 -e 'for ^1000 { say "Iter $_"; "foo".subst: :g, /<{"abc".comb.join("\\s")}>/, "" }' If the interpolated string is changed to just "a\\sb\\sc", the issue goes away. And if we store the computation in a variable first and then use the variable in a regex, the leak seems to be much less severe (but still present; leaks up to about 500MB by the 1000th iteration): perl6 -e 'for ^100000 { say "Iter $_"; my $x = "abc".comb.join("\\s"); "foo".subst: :g, /<$x>/, "" }' |
From @zoffixznetPresent today's HEAD on rakudo-moar a45202 |
From @jnthnOn Thu Sep 01 09:28:21 2016, cpan@zoffix.com wrote:
Boiled down to an EVAL-related leak, which was in turn due to a serialization context management bug in MoarVM. Fixed now; it grows to a point then settles. /jnthn |
The RT System itself - Status changed from 'new' to 'open' |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#129161 (status was 'resolved')
Searchable as RT129161$
The text was updated successfully, but these errors were encountered: