firedancer icon indicating copy to clipboard operation
firedancer copied to clipboard

Arm support for fd_tango

Open ripatel-fd opened this issue 1 year ago • 0 comments

Problem

fd_tango currently assumes x86-like memory consistency where a series of stores made on the same thread become visible in the same order on all other threads.

This is not guaranteed without memory barriers on most RISC architectures like aarch64.

Suggested Fix

  • Add more fine grained alternatives for FD_COMPILER_MFENCE that provide generic memory barrier behavior (that is just a regular compiler fence on x86, but generates an extra instruction on Arm)
  • Update FD_COMPILER_MFENCE uses in fd_tango

ripatel-fd avatar Jan 30 '24 04:01 ripatel-fd