Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Growable fiber stacks #33

Open
dhil opened this issue Nov 1, 2023 · 0 comments
Open

Growable fiber stacks #33

dhil opened this issue Nov 1, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@dhil
Copy link
Member

dhil commented Nov 1, 2023

Currently, the size of a fiber stack is fixed, meaning a fiber-based computation may run out of stack space. On one hand the fixed size model is nice because it is simple and does not occur an overhead on other constructs. On the other hand it can be quite wasteful as no size-fits-all, so conservatively we have to allocate enough space for the largest fiber-based computations, which obviously means we may waste considerable amounts of memory for small fiber-based computations.

We should experiment with different stack growing techniques: explicit stack size check in function preludes, virtual memory gstacks, etc.

@dhil dhil added the enhancement New feature or request label Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant