-
Notifications
You must be signed in to change notification settings - Fork 49
[stack-switching] Unboxed continuation build option #547
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
base: master
Are you sure you want to change the base?
Conversation
titzer
left a comment
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.
Awesome, with only the minor-est of comments :)
|
|
||
| CONTINUATION="src/engine/continuation/BoxedContinuation.v3" | ||
| CONTINUATION="src/engine/continuation/UnboxedContinuation.v3" | ||
| CONTINUATION_X86_64="src/engine/continuation/X86_64UnboxedContinuation.v3" |
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.
Let's put this in src/engine/x86-64/
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.
I think everything under /x86-64/* is included unconditionally in the x86-64 target, but which continuation offset file to include is dependent on whether --boxed-continuation is enabled. Can this still be done if both offset files are moved under /x86-64/?
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.
You could create a further subdirectory perhaps.
This PR introduces an unboxed stack-switching implementation that avoids heap allocation when creating continuations via
suspend/switch. This behavior can be configured at build-time: the build defaults to the unboxed mode, and the boxed implementation can be enabled by passing--boxed-continuationtobuild.sh.