[][src]Function cgc::write_barrier

pub fn write_barrier<T: HeapTrait + ?Sized>(src: &T)

Write barrier must be executed before store to some heap object happens.

Where and when to use?

You should place write barrier before store and write barrier is needed only when you store other GC value into GC value.