-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Settings.toml-configurable pystack #7585
Conversation
Stackless will not be implemented with this pr as it would require modification of every gc function call. Also, the settings.toml variable Do note, stackless is still usable by setting the build flag the old way. |
Could you explain why this is? Could you use a global instead? |
Sure,
This code block is disabled on stackless. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for persevering on this! You are getting there. I added a few suggestions around the structure.
Yea I kinda reworked it a bit, now it realloc's on reload (if needed) and it no longer multiplies the value it gets by sizeof(size_t). It got too confusing to calculate, even for me who wrote it. Ended up turning them back to globals in hopes of simplifying. |
Pystack has to be allocated before heap, so this means it will have to be allocated before |
Added error messages, and safety for allocation failures. Now it's pretty much perfect. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's looking good!
This reverts commit f05c730.
455627a
to
d7e6a78
Compare
Once again, I think I am done. As a final note, I remind you all that the old |
Turns out |
Alright and |
|
This sadly doesn't build. 400 more bytes are needed. |
|
For |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Thank you @bill88t!
Usage is via settings.toml, e.g.: And |
Precisely. |
This pr is the replacement for #7396.
It aims to provide a way to configure pystack size after the build.
It also will provide a way to use stackless without rebuilding.
Currently working:
Support stackless by setting value to 0.