Skip to content
Latchkey

Memory Barrier - CI/CD Glossary Definition

A memory barrier (fence) is an instruction that constrains the ordering of memory reads and writes around it, preventing the CPU or compiler from reordering operations in ways that would make a lock-free or producer/consumer algorithm incorrect.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →