develooper Front page | perl.perl5.porters | Postings from September 2013

RFC: APIfying Perl_finalize_optree()

Thread Next
Brian Fraser
September 18, 2013 01:10
RFC: APIfying Perl_finalize_optree()
Message ID:
Howdy all!

I'm thinking that finalize_optree, or some part of its functionality,
should be made part of the public API. finalize_optree() is essential if
you're constructing your own optree[*] and care about threads; without it,
for example, constant SVOPs are shared between threads rather than stored
in the thread-local pad, which causes all sort of insanity.

I don't really care about the warnings that finalize_optree generates, so
perhaps a more generalized "make this optree thread-safe" function is

I can do the legwork for this if no one objects to the idea.

* Or, in my case, snatching already constructed trees that haven't been
finished yet.

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