ARM-software / synchronization-benchmarks

Collection of synchronization micro-benchmarks and traces from infrastructure applications
Other
37 stars 36 forks source link

Fix register allocation problems in LSE cmpxchg and mysql/cas_event_mutex.h #67

Closed jty2 closed 2 years ago

jty2 commented 2 years ago

The stxr register allocation fix is the same as was reported in https://github.com/ARM-software/synchronization-benchmarks/pull/61.

rpgolshan commented 2 years ago

This fix also looks like what's upstream in the kernel: https://elixir.bootlin.com/linux/v5.14.10/source/arch/arm64/include/asm/atomic_lse.h#L340

So I will approve.