finding the thread fails (suggested by Stas in
perl-ithreads Mar 01)
p4raw-id: //depot/perl@19563
#else
PERL_THREAD_GETSPECIFIC(self_key,thread);
#endif
- return ithread_to_SV(aTHX_ obj, thread, Class, TRUE);
+ if (thread)
+ return ithread_to_SV(aTHX_ obj, thread, Class, TRUE);
+ else
+ Perl_croak(aTHX_ "panic: cannot find thread data");
}
/*