Skip to content

Commit

Permalink
CR
Browse files Browse the repository at this point in the history
  • Loading branch information
mjp41 committed Feb 22, 2025
1 parent a80d115 commit fdab65d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/snmalloc/mem/freelist_queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,11 @@ namespace snmalloc

freelist::HeadPtr curr = domesticate_head(front.load());
if (curr == nullptr)
{
// First entry is still in progress of being added.
// Nothing to do.
return;
}

// Use back to bound, so we don't handle new entries.
auto b = back.load(stl::memory_order_relaxed);
Expand Down

0 comments on commit fdab65d

Please sign in to comment.