diff options
author | Matt Caswell <matt@openssl.org> | 2015-05-05 15:08:39 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-11-20 23:33:05 +0000 |
commit | 7070e5ca2fa41940d56599bf016a45cb1c0e03f0 (patch) | |
tree | a604a3525518f1cb3a232c4502072990b62053d0 /crypto/async/arch/async_posix.c | |
parent | 4cfa6204e8740a3e89b96fac3f1ac49d137e9dc9 (diff) |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/async/arch/async_posix.c b/crypto/async/arch/async_posix.c index 1b21bcc345..bb799e54f8 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; } |