llvm-project
00589529 - [libc] Simplifiy slab waiting in GPU memory allocator (#152872)

Commit
52 days ago
[libc] Simplifiy slab waiting in GPU memory allocator (#152872) Summary: This moves the waiting to be done inside of the `try_lock` routine instead. This makes the logic much simpler since it's just a single loop on a load. We should have the same effect here, and since we don't care about this being a generic interface it shouldn't matter that it waits abit. Still wait free since it's guaranteed to make progress *eventually*.
Author
Parents
Loading