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

Work around a strange space leak in PBFT.ChainState #1357

Merged
merged 5 commits into from
Dec 16, 2019

Conversation

mrBliss
Copy link
Contributor

@mrBliss mrBliss commented Dec 16, 2019

Includes a workaround for IntersectMBO/ouroboros-consensus#741.

Additionally, squash all thunks introduced in the last month(s), so that the tests pass again when the checktvarinvariant flag is enabled for the io-sim-classes package. This boils down to replacing tuples with records with strict fields and forcing the elements of non-empty list to WHNF.

@mrBliss mrBliss added consensus issues related to ouroboros-consensus chain db pbft immutable db labels Dec 16, 2019
@mrBliss mrBliss requested a review from nfrisby December 16, 2019 13:52
@mrBliss mrBliss force-pushed the mrBliss/work-around-leak branch from 56f0cc4 to 2b369b5 Compare December 16, 2019 14:23
Copy link
Contributor

@nfrisby nfrisby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Very minor comments.

@mrBliss mrBliss force-pushed the mrBliss/work-around-leak branch from 2b369b5 to dc99794 Compare December 16, 2019 15:12
@mrBliss
Copy link
Contributor Author

mrBliss commented Dec 16, 2019

bors r+

iohk-bors bot added a commit that referenced this pull request Dec 16, 2019
1357: Work around a strange space leak in PBFT.ChainState r=mrBliss a=mrBliss

Includes a workaround for #1356.

Additionally, squash all thunks introduced in the last month(s), so that the tests pass again when the `checktvarinvariant` flag is enabled for the `io-sim-classes` package. This boils down to replacing tuples with records with strict fields and forcing the elements of non-empty list to WHNF.

Co-authored-by: Thomas Winant <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Dec 16, 2019

@iohk-bors iohk-bors bot merged commit dc99794 into master Dec 16, 2019
@iohk-bors iohk-bors bot deleted the mrBliss/work-around-leak branch December 16, 2019 15:27
Copy link
Contributor

@dcoutts dcoutts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

We need a nightly run with the whnf checks enabled.

@mrBliss
Copy link
Contributor Author

mrBliss commented Dec 16, 2019

We need a nightly run with the whnf checks enabled.

See IntersectMBO/ouroboros-consensus#756.

@nfrisby
Copy link
Contributor

nfrisby commented Dec 16, 2019 via email

@karknu
Copy link
Contributor

karknu commented Dec 16, 2019

Great work!
With this fix merged I think it is a good idea to update cardano-node's deps.

@mrBliss
Copy link
Contributor Author

mrBliss commented Dec 16, 2019

With this fix merged I think it is a good idea to update cardano-node's deps.

After #1360 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chain db consensus issues related to ouroboros-consensus immutable db pbft
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants