-
Instead of using ucontext and setjmp together just use setjmp and limit ucontext usage to initialise the initial jmp_buf context. This simplifies the code and reduce number of context operations done. In particular using _setjmp/_longjmp moving from a context to another does not require any system call. On x64 the continuation structure is reduced from 2176 to 248 bytes. Signed-off-by: Frediano Ziglio <freddy77@gmail.com> Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
59893504