kohi icon indicating copy to clipboard operation
kohi copied to clipboard

[BUG] Investigate freelist test scenario

Open travisvroman opened this issue 2 years ago • 0 comments

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 avatar Jun 23 '22 00:06 travisvroman