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

AbandonedList size fix #352

Merged
merged 1 commit into from
Jun 12, 2024
Merged

AbandonedList size fix #352

merged 1 commit into from
Jun 12, 2024

Conversation

Scooletz
Copy link
Contributor

This PR fixes a sizing bug that was hidden in the AbandonedList and surfaced only when a lot of pages was registered in it. It was noticed in #346 but treated as some garbage left in the list that was not cleared. It resurfaced again when working on Snap. This PR adds a memory fencing test and asserts that AbandonedList does not reach beyond its size. The same same approach can be done for other structures.

@Scooletz Scooletz added the bug Something isn't working label Jun 12, 2024
Copy link

Code Coverage

Package Line Rate Branch Rate Health
Paprika 85% 79%
Summary 85% (3940 / 4648) 79% (1248 / 1584)

Minimum allowed line rate is 75%

@Scooletz Scooletz marked this pull request as ready for review June 12, 2024 11:09
@Scooletz Scooletz merged commit c1d707b into main Jun 12, 2024
2 checks passed
@Scooletz Scooletz deleted the abandoned-page-size-fix branch June 12, 2024 11:09
@Scooletz Scooletz added the 💥Breaking The change introduces a storage breaking change. label Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💥Breaking The change introduces a storage breaking change. bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant