[libc-commits] [libc] [libc][arc4random][patch 2/4] add ABA protected MPMCStack (PR #151361)

Schrodinger ZHU Yifan via libc-commits libc-commits at lists.llvm.org
Thu Aug 14 09:07:07 PDT 2025


SchrodingerZhu wrote:

> Why does this need to be lock free again?

This is for the fast path of acquiring free objects. 

> You could probably take the fixedstack approach I use but change it from a static array to one that allocated linked-lists.

What would be the major difference? I can take a try if that is easy to do but this PR already provides a unbounded stack implementation.

https://github.com/llvm/llvm-project/pull/151361


More information about the libc-commits mailing list