Mojo function
clobber_memory
clobber_memory()
Forces all pending memory writes to be flushed to memory.
This ensures that the compiler does not optimize away memory writes if it deems them to be not neccessary. In effect, this operation acts a barrier to memory reads and writes.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!