You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From my previous experience of RISC-V programming with Rust, I found that Rust won't generate amoswap instruction for spin lock. That's why I wrote __sync_lock_release and __sync_lock_test_and_set in arch.rs. On that, spin crate will generate non-atomic instruction for implementing the lock, which may cause significant slowdown. This affects all Atomic type in Rust.
The text was updated successfully, but these errors were encountered:
From my previous experience of RISC-V programming with Rust, I found that Rust won't generate
amoswap
instruction for spin lock. That's why I wrote__sync_lock_release
and__sync_lock_test_and_set
inarch.rs
. On that,spin
crate will generate non-atomic instruction for implementing the lock, which may cause significant slowdown. This affects allAtomic
type in Rust.The text was updated successfully, but these errors were encountered: