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
Would it be feasible to use a memory page with PROT_NONE at both the top and bottom of a coroutine stack to catch overflows immediately instead of after the fact in mco_yield()? I realise this would crash the application, hard, but that might be desirable for some use cases...
The text was updated successfully, but these errors were encountered:
Yes, you can already do this with a custom allocator, outside this library. Note that you can also use the MCO_USE_VMEM_ALLOCATOR (if your OS supports it) and have large stack for every coroutine without really making RAM usage high. If you have a big stack, stack overflows are unlikely to happen.
Would it be feasible to use a memory page with
PROT_NONE
at both the top and bottom of a coroutine stack to catch overflows immediately instead of after the fact inmco_yield()
? I realise this would crash the application, hard, but that might be desirable for some use cases...The text was updated successfully, but these errors were encountered: