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
This is a known problem. I have seen this work successfully, but it is not reliable because the compiler doesn't know what we're doing. Once the stack is zapped, any locals not held in registers will be lost, and the compiler doesn't let us tell it to refrain from using the stack.
Although "rewrite in assembly" has been my tentative solution, it may be possible to clean up the code and retain a C-like solution by aggressive use of __asm__("rdx") and similar annotations on locals.
The text was updated successfully, but these errors were encountered:
stephenrkell
changed the title
Can't trap clone()
Can't perform clone() in trap context
Mar 16, 2021
stephenrkell
changed the title
Can't perform clone() in trap context
Can't perform stack-replacing clone() in trap context
Mar 16, 2021
This is a known problem. I have seen this work successfully, but it is not reliable because the compiler doesn't know what we're doing. Once the stack is zapped, any locals not held in registers will be lost, and the compiler doesn't let us tell it to refrain from using the stack.
Although "rewrite in assembly" has been my tentative solution, it may be possible to clean up the code and retain a C-like solution by aggressive use of
__asm__("rdx")
and similar annotations on locals.The text was updated successfully, but these errors were encountered: