mirror of
https://github.com/deepseek-ai/3FS.git
synced 2026-11-05 00:47:47 +00:00
[PR #199] move nextAvail back as much as possible #322
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/3FS#322
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/deepseek-ai/3FS/pull/199
Author: @symious
Created: 3/20/2025
Status: 🔄 Open
Base:
main← Head:dealloc_back📝 Commits (3)
c712ce1move back AMAPd689e10change indent55c7f3fchange to prefix operator📊 Changes
1 file changed (+4 additions, -3 deletions)
View changed files
📝
src/common/utils/AtomicSharedPtrTable.h(+4 -3)📄 Description
The original code won't move the nextAvail.
Say we have 5 slots, and all allocated.
T1. nextAvail = 5, free = {}
T2. dealloc(2), nextAvail = 5, free = {2}
T3. dealloc(3), nextAvail = 5, free = {2, 3}
T4. dealloc(4)
Or is it because of performance issue to remove the free.erase logic here? If so we don't need to while check here.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.