]> Cypherpunks repositories - gostls13.git/commitdiff
doc: describe cgo ptr->uintptr changes for 1.11.
authorKeith Randall <khr@google.com>
Mon, 6 Aug 2018 17:17:52 +0000 (10:17 -0700)
committerKeith Randall <khr@golang.org>
Mon, 6 Aug 2018 17:35:28 +0000 (17:35 +0000)
Fixes #26721

Change-Id: Icc4660327a9ba668c88f8d9e0b9f206ba8f6dc27
Reviewed-on: https://go-review.googlesource.com/127975
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
doc/go1.11.html

index de3da01325cbe54a52a3249d825cac643f393cd0..e76e21c52e38339a91f9e712f0e82fb37e28bdf2 100644 (file)
@@ -311,6 +311,19 @@ func f(v interface{}) {
   user task/region analysis page.
 </p>
 
+<h3 id="cgo">Cgo</h3>
+
+<p>
+Since Go 1.10, cgo has translated some C pointer types to the Go
+type <code>uintptr</code>. These types include
+the <code>CFTypeRef</code> hierarchy in Darwin's CoreFoundation
+framework and the <code>jobject</code> hierarchy in Java's JNI
+interface. In Go 1.11, several improvements have been made to the code
+that detects these types. Code that uses these types may need some
+updating. See the <a href="go1.10.html#cgo">Go 1.10 release notes</a> for
+details. <!-- CL 126275, CL 127156, CL 122217, CL 122575, CL 123177 -->
+</p>
+
 <h3 id="godoc">Godoc</h3>
 
 <p>