-
Notifications
You must be signed in to change notification settings - Fork 201
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
Keep stack from growing without bound #1892
Conversation
This fixes a bug where classical variables may be allocated on the stack without bound. Instead, use the scope information to bound the lifetimes of classical variables and prevent a standard loop from accidentally exhausting the stack. We haven't encountered this issue because we have focused on SCPs and totally unrolling all the loops. This patch is preventative maintenance. Add test.
3fff241
to
095cc9f
Compare
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
ping. needs a review. |
Co-authored-by: Ben Howe <[email protected]>
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
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.
👍
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
This fixes a bug where classical variables may be allocated on the stack without bound. Instead, use the scope information to bound the lifetimes of classical variables and prevent a standard loop from accidentally exhausting the stack.
We haven't encountered this issue because we have focused on SCPs and totally unrolling all the loops. This patch is a preventative fix.