develooper Front page | perl.perl5.porters | Postings from February 2018

Re: [perl #132892] Possibly memory leak when matching strings usingpre-compiled regexes stored in hash key (perl >= v5.26)

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
February 23, 2018 13:03
Subject:
Re: [perl #132892] Possibly memory leak when matching strings usingpre-compiled regexes stored in hash key (perl >= v5.26)
Message ID:
20180223130316.GU3216@iabyn.com
On Fri, Feb 23, 2018 at 10:34:50AM +0100, demerphq wrote:
> Fixed in 910a6a8be166fb3780dcd2520e3526e537383ef2
> 
> Unfortunately I don't know how to test for a memory leak, so no tests included.

see t/op/svleak.t. It runs a bit of code several times in a loop and
tests whether PL_sv_count fails to remain constant.

-- 
Little fly, thy summer's play my thoughtless hand
has terminated with extreme prejudice.
        (with apologies to William Blake)

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About