3 ms·
> Maintaining this invariant is the job of the write barrier, which is a small function run by the mutator whenever a pointer in the heap is modified. Synchron
by qznc 11y ago
> Maintaining this invariant is the job of the write barrier, which is a small function run by the mutator whenever a pointer in the heap is modified.
Synchronization whenever a heap pointer is changed? That does not sound like "low latency".
- dfox 11y agoIn case of GC terminology "barrier" simply means that some kind of hook is run on read or write of pointer, it does not necessarily imply barrier in the caching or synchronization sense. Typical implementation of write barrier involves adding item to some kind of thread-local queue.