Comments (2)
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.
from minicoro.
For the moment I hardwired a single PROT_NONE
page at the bottom of the stack to reliably crash on stack overflow.
from minicoro.
Related Issues (14)
- Trying to get minicoro working with a C++ wrapper (and smart pointers) HOT 2
- Mild red zone bug. HOT 2
- Usage of "fiber_storage" in the Win32 implementation HOT 2
- Release temporary variables on the stack HOT 1
- Optimize per coroutine memory footprint with virtual memory mapping HOT 1
- C++ exceptions question HOT 2
- C++ Exceptions Revisited HOT 4
- Documentation of saved state and compatible instruction extensions HOT 2
- Makefile mt-example link fails due to -lpthread order wrong HOT 1
- stack overflow with VS2008 / VS2019 HOT 2
- Can this run in Switch? HOT 2
- Symmetric coroutines? HOT 2
- Interrupting a long-running coroutine and moving it to another os-level thread HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minicoro.