You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 16, 2025. It is now read-only.
makecontext and friends have to make system calls every time they are used to store the current signal mask. Instead of using this function directly it'd be more performant to store the callee-saved registers yourself (depends on your target systems ABI).
You'd need to store any preserved registers in the table here. You can also probably skip out of preserving float registers as they are also not guaranteed to be preserved accross function calls.
You could store all registers like makecontext does but it's not necessary.
makecontextand friends have to make system calls every time they are used to store the current signal mask. Instead of using this function directly it'd be more performant to store the callee-saved registers yourself (depends on your target systems ABI).You'd need to store any preserved registers in the table here. You can also probably skip out of preserving float registers as they are also not guaranteed to be preserved accross function calls.
You could store all registers like
makecontextdoes but it's not necessary.References: