You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I do know how to generate the desired result, just
a := (*unsafe.Pointer) (unsafe.Pointer(&intp));
atomic.StorePointer(a, unsafe.Pointer(&n1));
however, &intp is Integer pointer, but it is not a *unsafe.Pointer
it is not like (*reflect.SliceHeader) and (*reflect.StringHeader) confirmed by std library to be compatible.
The text was updated successfully, but these errors were encountered:
Hello @zylthinking, unlike other projects, we do not use the issue tracker for questions such as these. It is only used for bugs and feature proposals. I will close this issue, but please feel free to ask it in any of these forums below:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
YES
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
0xc00009e010 0xc00009e018
0xc0000a2018 0xc00009e010
0xc0000a2018 0xc00009e018
What did you see instead?
0xc0000a0000 0xc0000a0008
0xc000096018 0xc0000a0000
0xc0000a0008 0xc0000a0000
words
I do know how to generate the desired result, just
however, &intp is Integer pointer, but it is not a *unsafe.Pointer
it is not like (*reflect.SliceHeader) and (*reflect.StringHeader) confirmed by std library to be compatible.
The text was updated successfully, but these errors were encountered: