1
0
mirror of https://github.com/golang/go synced 2024-11-08 04:36:11 -07:00
go/src/cmd/fix
Keith Randall 36aa2b036d cmd/cgo: make JNI's jobject type map to uintptr in Go
The jobject type is declared as a pointer, but some JVMs
(Dalvik, ART) store non-pointer values in them. In Go, we must
use uintptr instead of a real pointer for these types.

This is similar to the CoreFoundation types on Darwin which
were "fixed" in CL 66332.

Update #22906
Update #21897

RELNOTE=yes

Change-Id: I0d4c664501d89a696c2fb037c995503caabf8911
Reviewed-on: https://go-review.googlesource.com/81876
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-12-08 16:13:14 +00:00
..
cftype_test.go cmd/cgo: special case C ptr types to use uintptr 2017-11-17 22:11:03 +00:00
cftype.go cmd/cgo: make JNI's jobject type map to uintptr in Go 2017-12-08 16:13:14 +00:00
context_test.go cmd/fix: add golang.org/x/net/context fix 2016-09-15 19:24:04 +00:00
context.go cmd/fix: rewrite x/net/context by default 2017-08-31 19:04:54 +00:00
doc.go
fix.go all: revert "all: prefer strings.LastIndexByte over strings.LastIndex" 2017-10-05 23:19:42 +00:00
gotypes_test.go
gotypes.go cmd/fix: add golang.org/x/net/context fix 2016-09-15 19:24:04 +00:00
import_test.go
jnitype_test.go cmd/cgo: make JNI's jobject type map to uintptr in Go 2017-12-08 16:13:14 +00:00
jnitype.go cmd/cgo: make JNI's jobject type map to uintptr in Go 2017-12-08 16:13:14 +00:00
main_test.go
main.go cmd/fix,cmd/gofmt: flush to disk before diffing 2017-03-30 18:19:57 +00:00
netipv6zone_test.go
netipv6zone.go cmd/fix: add golang.org/x/net/context fix 2016-09-15 19:24:04 +00:00
printerconfig_test.go
printerconfig.go cmd/fix: add golang.org/x/net/context fix 2016-09-15 19:24:04 +00:00
typecheck.go cmd/cgo: special case C ptr types to use uintptr 2017-11-17 22:11:03 +00:00