unikraft / lib-musl

musl: A C standard library
Other
9 stars 29 forks source link

Introduce `stdatomic.h` #80

Open huyang531 opened 4 months ago

huyang531 commented 4 months ago

This PR introduces C11's stdatomic.h header to the MUSL library. This header is fundamental for synchronous applications that require advanced memory ordering constraints.

It is now introduced as part of an ongoing effort to port the mimalloc memory allocator to the latest Unikraft core. @RaduNichita @razvanvirtan @razvand

Signed-off-by: Yang Hu yanghuu531@gmail.com

StefanJum commented 2 months ago

@huyang531 is this still in a draft state?

huyang531 commented 2 months ago

@huyang531 is this still in a draft state?

Just marked it ready for review. It works perfectly with mimalloc, but I haven't tested it fully in more complex situations (even mimalloc itself is not fully tested yet), though.