On Mon, Dec 4, 2017 at 1:57 PM <quans...@gmail.com> wrote: > i should have mentioned the race detector found nothing. jan, can you give an example of a go program > setting a pointer to -1 without using unsafe? this requires the gc to have free'd something that is still live, > doesn't it?
See https://research.swtch.com/gorace, under the tiele "A Race". I wanted to modify the example to produce the -1 pointer, which would be rather easy, but to my surprise, the original unmodified code does no more produce the fail (go version go1.9.2 linux/amd64). That does not mean the principles discussed the rsc's blog post do no more apply, it's just something now prevents the fail. But that's not the same as a guarantee of it not happening. -- -j -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.