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:
sisyphus
Date:
September 13, 2023 13:25
Subject:
Re: Calling Perl subs from XS under PERL_RC_STACK
Message ID:
CADZSBj1wZgAkLzUv8mhf_P9g6bSQkPuApjkPt1KTH4Mg2xNbuw@mail.gmail.com
On Wed, Sep 13, 2023 at 9:22 AM Dave Mitchell <davem@iabyn.com> wrote:

> [snip]
>
> Given that the PERL_RC_STACK work isn't even complete in the perl core
> yet, I think you're jumping the gun a bit!
>

Another gun jumper here. Feel free to totally ignore this post.
I'll just mention something that I've noticed with -DPERL_RC_STACK on
Windows.
I have (eg) an XSub in Math::GMPz called get_refcnt() which simply wraps
SvREFCNT().
I'm accustomed to seeing:

D:\>perl -MMath::GMPz -le "$z = 123; print Math::GMPz::get_refcnt($z);"
1

But with today's blead (commit 4e1743c0), I've built perl with
-DPERL_RC_STACK for the first time, and I'm getting:

D:\>perl -MMath::GMPz -le "$z = 123; print Math::GMPz::get_refcnt($z);"
2

I assume that this is under control and will be taken care of in due course.
But do let me know if this warrants further investigation, or if you want
additional information.

Cheers,
Rob

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