Comments (2)
In one sense, by rescheduling onto the inline scheduler, you are asking for this behavior. In another sense, this is simply a limitation of the language that doesn't allow us to use a tail call optimization to turn this recursion into iteration.
My suggestion is to use the trampoline scheduler to occasionally unwind the stack and avoid overflow. That's what is for.
from libunifex.
Thank you for the clarification. Yes I looked into the trampoline scheduler and it does solve the problem. P.S. The trampoline scheduler is designed and implemented quite delicately. It's fantastic.
from libunifex.
Related Issues (20)
- Asyn_scope query HOT 1
- how to cancel task in static_thread_pool queue? HOT 3
- link error observed HOT 1
- Question: why does my scheduler fail the scheduler concept? HOT 4
- How to format code-style HOT 5
- update `.clang-format` and re-format everything
- Differences between libunifex and stdexec
- improve `fused_stop_source`
- Arithmetic exception in example io_epoll_test HOT 1
- rm `std::terminate` branch from `stop_when`
- Templatize range_stream HOT 1
- detail/types.hpp has what looks like a bad merge
- Clean up when_all.hpp
- Get rid of `config.hpp.in`
- There is different storage class about unifex::schedule. HOT 1
- implement `next_adapt_stream` / `cleanup_adapt_stream` in terms of `adapt_stream`
- Clean up TODO's in scheduler affinity revamp
- flat combining for async_mutex
- Cleanup `io_uring_context`
- at_coroutine_exit can probably break scheduler affinity
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 libunifex.