commit | 5b452fe89a0b199588ec21f052cd77261b55a83a | [log] [tgz] |
---|---|---|
author | Elias Naur <elias.naur@gmail.com> | Fri Apr 13 17:56:28 2018 +0200 |
committer | Elias Naur <elias.naur@gmail.com> | Tue Apr 17 14:58:00 2018 +0000 |
tree | fe5db0850ce6883f1d1340dffaaa1bb8fc99d40f | |
parent | 1f177cbe4ddf911017472e9532c6ca3a99949d53 [diff] |
bind: split out Seq.getRef calls with Go references Today, the Seq.Ref class has two purposes. For Java references, Ref contains the refnum, a reference to the Java object and a reference count. For Go references, Ref contains the refnum and its finalizer makes sure to decrement the reference count on the Go side. The next CL will replace the use of finalizers with an explicit ReferenceQueue of Go references, and the Ref class will no longer be used for Go refences. To prepare for that, this CL pulls up the construction of Go referencing Ref instances into the Seq.trackGoRef function. Change-Id: I9eefe238cd3fd1b661b2af11d331a2f61e31303b Reviewed-on: https://go-review.googlesource.com/106875 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
The Go mobile repository holds packages and build tools for using Go on mobile platforms.
Package documentation as a starting point:
The Go Mobile project is experimental. Use this at your own risk. While we are working hard to improve it, neither Google nor the Go team can provide end-user support.
This is early work and installing the build system requires Go 1.5. Follow the instructions on golang.org/wiki/Mobile to install the gomobile command, build the basic and the bind example apps.
Contributions to Go are appreciated. See https://golang.org/doc/contribute.html.