I want to implement the on-the-fly cycle collector based on age oriented gc. I'm in very early stages, but have got a general idea of where to put what. I've implemented soft handshaking etc. I'm now stuck at simple write barriers. Please guide me through the implementation of a write barrier. I want to implement the barriers so that the copy-on-write mechanism could be established.

N. Lalit Vidyadhar Sharma