collector. Some code in the Go standard library (notably sync.copyChecker)
seems to assume that the following holds:
obj := new(something)
ptrA := uintptr(unsafe.Pointer(obj))
/* various stuff */
ptrB := uintptr(unsafe.Pointer(obj))
/* Does this hold? */
ptrA == ptrB
Does this assumption hold? I.e. can I assume that once I convert an
unsafe.Pointer to an uintptr, the object I point to doesn't move in memory
anymore? I asked a question <http://stackoverflow.com/q/22195919/417501>about this issue before, but the results where a little bit inconclusive.
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 firstname.lastname@example.org.
For more options, visit https://groups.google.com/groups/opt_out.