]> Cypherpunks repositories - gostls13.git/commit
misc/cgo/test: get uintptr, not pointer, from dlopen
authorIan Lance Taylor <iant@golang.org>
Fri, 2 Feb 2018 13:38:08 +0000 (05:38 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 2 Feb 2018 18:42:10 +0000 (18:42 +0000)
commit2a8229d96eb76ec4c20dadd913b17053c30faad4
tree9a61511f127e493f6af9317d69c8761d8914dab5
parent851e98f0ee59d3027ec82363aedc741ad14100f9
misc/cgo/test: get uintptr, not pointer, from dlopen

The dlopen function returns an opaque handle, and it is possible for
it to look like a Go pointer, causing garbage collector and cgo
confusion.

Fixes #23663

Change-Id: Id080e2bbcee8cfa7ac4a457a927f96949eb913f8
Reviewed-on: https://go-review.googlesource.com/91596
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
misc/cgo/test/issue4029.c
misc/cgo/test/issue4029.go