Front page | perl.perl5.porters |
Postings from April 2000
Re: -Dusethread woes
Thread Previous
|
Thread Next
From:
Gurusamy Sarathy
Date:
April 14, 2000 15:48
Subject:
Re: -Dusethread woes
Message ID:
200004142247.PAA04706@maul.ActiveState.com
On Fri, 14 Apr 2000 15:16:47 PDT, Doug MacEachern wrote:
>gcc -E expands this:
>static void test(pTHXo)
>{
> dSP;
>}
>
>to:
>static void test(register PerlInterpreter *my_perl )
>{
> extern int Perl___notused ; register SV **sp = (*Perl_Tstack_sp_ptr(((PerlInterpret
>er *)pthread_getspecific((*Perl_Gthr_key_ptr(((void *)0) )) ) ) )) ;
>}
>
>dSP; core dumps when being called concurrently.
>
>i would expect that to be more like:
>register SV **sp = my_perl->Tstack_sp;
You need a #define PERL_NO_GET_CONTEXT in there to get that. (See
perlguts.pod.)
PERL_NO_GET_CONTEXT got an extra underscore sometime after 670--that
could be biting you.
Sarathy
gsar@ActiveState.com
Thread Previous
|
Thread Next