Search the web
Sign In
New User? Sign Up
perl5-porters
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
[PATCH] Threadsafe PMOPs! We might still win this war.   Message List  
Reply | Forward Message #89846 of 89846 | Next >
Re: [PATCH] Threadsafe PMOPs! We might still win this war.

On Wed, 11 Jul 2001 14:23:37 +0200, "Artur Bergman" wrote:
>As soon as Perl_re_dup is finished (incoming later from AMS) this will clone a
>ll regexes to be
>thread specific. This does not put them on the pad as Sarathy suggest, putting
> the regexes
>on the pad changes semantics of perl and is rather non trivial compared to thi
>s.
>It can however be done later.
>
>Problems might be the pm flags, if so we will have to move them out of this an
>d onto a seperate list.
>I don't fully grok the flags and left them as existing. Could somone comment o
>n this?

Might some of the pm flags belong in the REGEXP rather than in the PMOP?
If so, I'd suggest moving them there.

Overall, looks like good progress (assuming re_dup() works). It will
be easy to convert the global padlist you have there into CV-specific
pad entries in future.

There appears to be a leak though. I don't see where PL_regex_padav
entries are freed when the PMOP is freed. And if such freeing creates
a hole in the PL_regex_padav, subsequent allocation of an entry from
the list should get the same offset as the freed one. (If you look
closely, doing this will pretty much reinvent the already existing
pad_alloc() and pad_free().)

Thanks.


Sarathy
gsar@...



Wed Jul 11, 2001 2:25 pm

gsar@...
Send Email Send Email

Forward
Message #89846 of 89846 | Next >
Expand Messages Author Sort by Date

Below is a patch that moves REGEXP out of PMOPs and into an PL_regex_padav. The offset is stored in PMOP->op_pmoffset. As soon as Perl_re_dup is finished...
Artur Bergman
artur@...
Send Email
Jul 11, 2001
12:19 pm

... Might some of the pm flags belong in the REGEXP rather than in the PMOP? If so, I'd suggest moving them there. Overall, looks like good progress (assuming...
Gurusamy Sarathy
gsar@...
Send Email
Jul 11, 2001
2:28 pm
< Prev Topic  |  Next Topic >
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help