aboutsummaryrefslogtreecommitdiff
path: root/crypto/async/arch/async_posix.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-05-05 15:08:39 +0100
committerMatt Caswell <matt@openssl.org>2015-11-20 23:33:05 +0000
commit7070e5ca2fa41940d56599bf016a45cb1c0e03f0 (patch)
treea604a3525518f1cb3a232c4502072990b62053d0 /crypto/async/arch/async_posix.c
parent4cfa6204e8740a3e89b96fac3f1ac49d137e9dc9 (diff)
downloadopenssl-7070e5ca2fa41940d56599bf016a45cb1c0e03f0.zip
openssl-7070e5ca2fa41940d56599bf016a45cb1c0e03f0.tar.gz
openssl-7070e5ca2fa41940d56599bf016a45cb1c0e03f0.tar.bz2
Use longjmp at setjmp where possible
Where we can we should use longjmp and setjmp in preference to swapcontext/ setcontext as they seem to be more performant. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/async/arch/async_posix.c')
-rw-r--r--crypto/async/arch/async_posix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/async/arch/async_posix.c b/crypto/async/arch/async_posix.c
index 1b21bcc..bb799e5 100644
--- a/crypto/async/arch/async_posix.c
+++ b/crypto/async/arch/async_posix.c
@@ -75,6 +75,7 @@ int ASYNC_FIBRE_init(ASYNC_FIBRE *fibre)
fibre->fibre.uc_stack.ss_sp = stack;
fibre->fibre.uc_stack.ss_size = STACKSIZE;
fibre->fibre.uc_link = NULL;
+ fibre->env_init = 0;
return 1;
}