Re: [go-nuts] atomic package pointer operations with maps and channels

2017-08-12 Thread Josh Humphries
On Fri, Aug 11, 2017 at 6:22 PM, Ian Lance Taylor wrote: > On Fri, Aug 11, 2017 at 2:51 PM, Josh Humphries > wrote: > > > > It is possible to extract a map's actual value/address if it is stored in > > the heap -- by using something like this: > > atomic.LoadPointer((*unsafe.Pointer)(unsafe.Po

Re: [go-nuts] atomic package pointer operations with maps and channels

2017-08-11 Thread Ian Lance Taylor
On Fri, Aug 11, 2017 at 2:51 PM, Josh Humphries wrote: > > It is possible to extract a map's actual value/address if it is stored in > the heap -- by using something like this: > atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(&m))) > However, it does not appear to possible to go the other d