mobile/bind
Elias Naur 5b452fe89a 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>
2018-04-17 14:58:00 +00:00
..
java bind: split out Seq.getRef calls with Go references 2018-04-17 14:58:00 +00:00
objc cmd/gomobile: use standalone NDK toolchains 2018-03-26 17:11:49 +00:00
seq bind: use runtime.KeepAlive to keep foreign references alive 2017-01-30 19:33:00 +00:00
testdata bind: split out Seq.getRef calls with Go references 2018-04-17 14:58:00 +00:00
bind.go bind,cmd: add generator for ObjC API wrappers 2016-10-16 10:25:40 +00:00
bind_test.go bind: support underscores in identifiers 2018-03-21 16:27:11 +00:00
gen.go bind: ignore unsupported basic types 2018-04-10 16:30:43 +00:00
genclasses.go bind, cmd: generate complete standalone bindings from gobind 2018-03-16 06:47:34 +00:00
gengo.go bind: ignore unsupported basic types 2018-04-10 16:30:43 +00:00
genjava.go bind: split out Seq.getRef calls with Go references 2018-04-17 14:58:00 +00:00
genobjc.go bind: ignore unsupported basic types 2018-04-10 16:30:43 +00:00
genobjcw.go bind, cmd: generate complete standalone bindings from gobind 2018-03-16 06:47:34 +00:00
printer.go mobile/bind: move generated Java classes to package level 2016-08-22 07:41:35 +00:00
seq.go.support bind, cmd: generate complete standalone bindings from gobind 2018-03-16 06:47:34 +00:00
types.go bind: handle import paths without trailing slashes correctly 2018-03-21 12:14:32 +00:00