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

Remove unused capacity and add NewRef function to queue tutorial #9

Merged
merged 1 commit into from
Jan 26, 2025

Conversation

lredlin
Copy link
Contributor

@lredlin lredlin commented Jan 25, 2025

This will make proofs easier by proving a function that directly returns a pointer which will have a spec and proof that do the work of initializing all of the ghost state. Also the capacity here is unused. It seems like the idea was to make the slice fixed length but in reality the capacity is only used in Go slices to determine when to upsize and in this case since the initial size is queue_size it actually has no effect. This will be followed by updates to goose code and proofs.

…r for queue tutorial.

This will make proofs easier by proving a function that directly returns a pointer which will have a spec and proof that do the work of initializing all of the ghost state. Also the capacity here is unused. It seems like the idea was to make the slice fixed length but in reality the capacity is only used in Go slices to determine when to upsize and in this case since the initial size is queue_size it actually has no effect. This will be followed by updates to goose code and proofs.
lredlin added a commit to lredlin/perennial that referenced this pull request Jan 25, 2025
This is the proof and code changes associated with
mit-pdos/gokv#9.
lredlin added a commit to lredlin/perennial that referenced this pull request Jan 25, 2025
lredlin added a commit to lredlin/perennial that referenced this pull request Jan 25, 2025
@zeldovich
Copy link
Member

Thanks!

@zeldovich zeldovich merged commit f2e9027 into mit-pdos:main Jan 26, 2025
zeldovich pushed a commit to mit-pdos/perennial that referenced this pull request Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants