{"body":"// Write barrier calls must not happen during critical GC and scheduler\n// related operations. In particular there are times when the GC assumes\n// that the world is stopped but scheduler related code is still being\n// executed, dealing with syscalls, dealing with putting gs on runnable\n// queues and so forth. This code cannot execute write barriers because\n// the GC might drop them on the floor. Stopping the world involves removing\n// the p associated with an m. We use the fact that m.p == nil to indicate\n// that we are in one these critical section and throw if the write is of\n// a pointer to a heap object.","name":"","extension":"txt","url":"https://www.irccloud.com/pastebin/tu7rft1h","modified":1497970585,"id":"tu7rft1h","size":616,"lines":9,"own_paste":false,"theme":"","date":1497970585}