Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Memory leak in unicode substitution

by haukex (Archbishop)
on Aug 30, 2019 at 08:04 UTC ( [id://11105294]=note: print w/replies, xml ) Need Help??


in reply to Memory leak in unicode substitution

I can confirm the leak here too (Linux), with something as simple as the following, on Perl versions 5.18 and up, earlier versions don't leak. Definitely report this via perlbug.

#!/usr/bin/env perl use warnings; use strict; for ( 0..500 ) { for ( 0..1000 ) { (my $x = "x") =~ s/\x{2122}/(TM)/sg; } system("ps -hovsz $$"); }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11105294]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-19 20:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found