GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Main page
  • Contents
  • Current events
  • Random article
  • About Wikipedia
  • Contact us
  • Help
  • Learn to edit
  • Community portal
  • Recent changes
  • Upload file
  • Special pages
  • Search
  • Donate

This view

  • Original page
  • New address

GeezerVison is showing en.wikipedia.org — Write barrier - Wikipedia

In operating systems, write barrier is a mechanism for enforcing a particular ordering in a sequence of writes to a storage system in a computer system. For example, a write barrier in a file system is a mechanism (program logic) that ensures that in-memory file system state is written out to persistent storage in the correct order.[1][2][3]

In garbage collection

A write barrier in a garbage collector is a fragment of code emitted by the compiler immediately before every store operation to ensure that (e.g.) generational invariants are maintained.[4][5]

In computer storage

icon
This section does not cite any sources. Please help improve this section by adding citations to reliable sources. Unsourced material may be challenged and removed. (October 2026) (Learn how and when to remove this message)

A write barrier in a memory system, also known as a memory barrier, is a hardware-specific compiler intrinsic that ensures that all preceding memory operations "happen before" all subsequent ones.

See also

  • Native Command Queuing

References

  1. ↑ "Chapter 16. Write Barriers". docs.fedoraproject.org. Archived from the original on June 8, 2022. Retrieved January 24, 2014.
  2. ↑ Heo, Tejun (July 22, 2005). "I/O Barriers". kernel/git/torvalds/linux.git - Linux kernel source tree. git.kernel.org. Retrieved January 24, 2014.
  3. ↑ Corbet, Jonathan (August 18, 2010). "The end of block barriers". LWN.net. Retrieved January 24, 2014.
  4. ↑ Zorn, Benjamin (November 1990). Barrier methods for Garbage Collection (Report). Technical Report. Vol. CU-CS-494-90. Department of Computer Science, University of Colorado in Boulder. pp. 11–18.
  5. ↑ "GC FAQ -- algorithms". iecc.com. Retrieved June 30, 2020.

Further reading

  • "Barriers and journaling filesystems". LWN.net. May 21, 2008.


Stub icon

This computer-storage-related article is a stub. You can help Wikipedia by adding missing information.

  • v
  • t
  • e
Stub icon

This computer science article is a stub. You can help Wikipedia by adding missing information.

  • v
  • t
  • e
Retrieved from "https://en.wikipedia.org/w/index.php?title=Write_barrier&oldid=1381462183"
Categories:
  • Compilers
  • Memory management
  • Computer storage stubs
  • Computer science stubs
Hidden categories:
  • Use mdy dates from October 2026
  • CS1: long volume value
  • Articles needing additional references from October 2026
  • All articles needing additional references
  • All stub articles
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.