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

Re: [patch] ignore PL_curpm in PL_regex_padav cleanup

Thread Previous | Thread Next
Arthur Bergman
August 4, 2001 00:37
Re: [patch] ignore PL_curpm in PL_regex_padav cleanup
Message ID:
01-08-04 02.37, skrev Doug MacEachern på 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.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About