pub unsafe fn release(old: *mut WordBuf, access: Access)Expand description
Disposes of a buffer that was just replaced. With local access no other thread can be reading it, so it is freed now; otherwise the collector frees it at the next stop-the-world.
ยงSafety
old must have been unpublished (replaced) by the caller, its only writer.