As per issue #5818, atomic_cas was implemented without specific regard for thread safety.
This crate provides an interpreter for Cranelift IR. It is still a work in progress, as many instructions are unimplemented and various implementation gaps exist. Use at your own risk.