Keith Randall
b868616b63
cmd/cgo: special case C ptr types to use uintptr
...
Some C types are declared as pointers, but C code
stores non-pointers in them. When the Go garbage
collector sees such a pointer, it gets unhappy.
Instead, for these types represent them on the Go
side with uintptr.
We need this change to handle Apple's CoreFoundation
CF*Ref types. Users of these types might need to
update their code like we do in root_cgo_darwin.go.
The only change that is required under normal
circumstances is converting some nils to 0.
A go fix module is provided to help.
Fixes #21897
RELNOTE=yes
Change-Id: I9716cfb255dc918792625f42952aa171cd31ec1b
Reviewed-on: https://go-review.googlesource.com/66332
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-11-17 22:11:03 +00:00
..
2016-05-02 13:43:18 +00:00
2016-08-31 06:30:26 +00:00
2016-05-02 13:43:18 +00:00
2014-11-03 13:41:03 -05:00
2016-12-15 17:05:29 +00:00
2015-11-14 18:56:17 +00:00
2015-11-14 18:56:17 +00:00
2017-06-13 18:36:04 +00:00
2012-01-24 14:48:15 -05:00
2016-11-01 23:06:24 +00:00
2014-12-24 00:18:21 +00:00
2016-10-13 00:03:57 +00:00
2017-11-02 18:17:22 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-10-19 21:20:50 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-06-01 22:06:51 +00:00
2017-11-17 22:11:03 +00:00
2016-10-13 00:03:57 +00:00
2016-12-05 18:46:18 +00:00
2016-10-21 20:46:20 +00:00
2016-10-05 17:44:27 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-06-02 10:09:12 +00:00
2016-05-02 13:43:18 +00:00
2015-10-13 17:53:20 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-06-01 22:06:51 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2012-09-20 13:20:33 +10:00
2012-09-20 13:20:33 +10:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2013-09-11 09:56:38 -04:00
2016-05-02 13:43:18 +00:00
2013-09-11 09:56:38 -04:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2017-04-07 21:09:44 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2017-11-15 03:36:54 +00:00
2017-11-15 03:36:54 +00:00
2017-11-15 03:36:54 +00:00
2016-06-01 22:06:51 +00:00
2016-06-01 22:06:51 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2017-09-13 02:53:11 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2014-10-09 16:10:51 +11:00
2014-10-09 16:10:51 +11:00
2014-10-09 16:10:51 +11:00
2016-06-01 22:06:51 +00:00
2016-08-31 06:30:26 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2014-10-15 13:13:37 -07:00
2016-05-02 13:43:18 +00:00
2014-11-03 13:41:03 -05:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-09-11 20:43:11 +00:00
2016-12-14 00:59:38 +00:00
2016-12-01 02:13:50 +00:00
2017-01-20 21:12:54 +00:00
2017-08-30 18:28:58 +00:00
2017-06-27 23:02:34 +00:00
2017-06-13 18:36:04 +00:00
2017-05-17 14:42:29 +00:00
2017-08-16 21:57:56 +00:00
2017-08-16 21:57:56 +00:00
2017-08-29 00:42:34 +00:00
2017-09-01 00:42:21 +00:00
2017-10-03 16:16:30 +00:00
2017-11-17 22:11:03 +00:00
2017-11-17 22:11:03 +00:00
2016-05-02 13:43:18 +00:00
2017-01-20 21:12:19 +00:00
2016-04-15 21:20:45 +00:00
2016-04-15 21:20:45 +00:00