On 2025-04-26 15:43, Kurt Roeckx wrote:
> tags 994510 + patch
> thanks
> 
> Hi,
> 
> I've attached a patch that does the same difference as the glibc change.

I don't think it is correct. Contrary to the getcontext/setcontext 
functions, an exception can happen at any moment, and not always around 
a function call. Therefore it is not possible to rely on that to not 
restore caller-saved registers.

> An alternative is that we also create a setcontext.

Sounds indeed the way to go.

Regards
Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurel...@aurel32.net                     http://aurel32.net

Reply via email to