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

[BUG] Investigate freelist test scenario #65

Open
travisvroman opened this issue Jun 23, 2022 · 0 comments
Open

[BUG] Investigate freelist test scenario #65

travisvroman opened this issue Jun 23, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@travisvroman
Copy link
Owner

Copied from a comment on YT:

During testing I encountered case where allocated space at the end did not get freed.
Steps I used:

  • make freelist for 3-4 elements and allocate all of them
  • free last one (this will hit the case you described in the next video)
  • free something else
    last operation should return false (at least for me it does). Offset is less than the only free block in the free list.

To fix that I did add some logic after while loop to fix that, but it seemed a bit hacky.

@travisvroman travisvroman added the bug Something isn't working label Jun 23, 2022
@travisvroman travisvroman self-assigned this Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant