develooper Front page | perl.perl5.porters | Postings from August 2001

Re: [patch] ignore PL_curpm in PL_regex_padav cleanup

Thread Previous | Thread Next
From:
Arthur Bergman
Date:
August 4, 2001 00:37
Subject:
Re: [patch] ignore PL_curpm in PL_regex_padav cleanup
Message ID:
B79172CA.2C21%arthur@contiller.se
01-08-04 02.37, skrev Doug MacEachern på dougm@covalent.net följande:

> it was a bandaid since some refcnts were dropping below 0, in which case
> Perl_pregfree would try to free them again.  turns out that case is
> PL_curpm, which is just a pointer, the real thing gets freed elsewhere.
> patch fixes by marking the PL_regex_padav entry for PL_curpm with the
> SVf_BREAK flag.  the flag is only used until arena cleanup, which happens
> after PL_regex_padav has already been cleared.

Problem is that PL_curpm changes after every match. So you would need to set
and unset the SVf_BREAK flag every time you get a new PMOP.

-- 
Arthur


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