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

Re: Calling Perl subs from XS under PERL_RC_STACK

Thread Previous | Thread Next
From:
Lukas Mai
Date:
September 13, 2023 16:11
Subject:
Re: Calling Perl subs from XS under PERL_RC_STACK
Message ID:
d0528068-9637-14e0-b8d5-2508545f24da@gmail.com
On 13.09.23 01:22, Dave Mitchell wrote:
[-snip-]
> 
> I don't know about Function::Parameters and in particular how the
> functions you've been modifying get invoked. But if there is a transition
> from a refcounted stack to non-refcounted stack somewhere which isn't via
> a normal XS call from pp_entersub, then it probably needs wrapping so
> that it's given a temporarily non-refcounted stack to run on and so can
> run unmodified.

I don't know about stack transitions, but the XS code gets called from 
the keyword plugin interface (from the parser), and it then calls back 
into Perl at compile time.

> But really, you'd be best off waiting until it's complete in core, the
> rpp_() API has stabilised, and PPPort has been updated.

OK, thank you for your reply. I'll wait until things are a bit more 
stable. Looks like I'll have to learn how Devel::PPPort works. :-)

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