develooper Front page | perl.perl5.porters | Postings from January 2001

Does perl really need to use sigsetjmp? (18% performance hit)

Thread Previous | Thread Next
From:
nick
Date:
January 10, 2001 14:54
Subject:
Does perl really need to use sigsetjmp? (18% performance hit)
Message ID:
E14GU5d-0004Ml-00@roam1
>Nick Ing-Simmons wrote:
>
>> What do you think of noting the sigmask before we call a signal handler
>> and restoring it if handler "dies"? (Leaving mask as handler leaves it
>> if handler runs to bottom - so that handler changing mask is still valid.)
>

Continuing this theme ...

On Linux one has in /usr/include/setjmp.h an #if 
muddle that results in

#define setjmp(b) sigsetjmp(b,0)

or

#define setjmp(b) sigsetjmp(b,1)

So it is tricky to test.

Can you tell me if passing 0 to sigsetjmp(b,0) is significantly slower
than setjmp() for you ? (Solaris, OS/2)

-- 
Nick Ing-Simmons


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