vitess-gh/third_party/go/launchpad.net/gozk/zookeeper
Anthony Yeh d18bdd4a0d Fix "invalid heap pointer" crash when built with Go 1.4.
The CGO wrapper for ZK was casting arbitrary integers to unsafe.Pointer.
For example, it would call C.something(unsafe.Pointer(1)) in order to
call "void something(void* tag)" with a tag value of (void*)1.

In Go 1.4, if a GC happens to occur while C.something() is executing, it
will find the unsafe.Pointer(1) on the stack and crash because 1 is not
a valid memory address.
2015-01-12 23:42:26 -08:00
..
example Added ZooKeeper dependendencies to the Vitess tree. 2013-07-17 14:07:28 -07:00
.lbox Added ZooKeeper dependendencies to the Vitess tree. 2013-07-17 14:07:28 -07:00
LICENSE Added ZooKeeper dependendencies to the Vitess tree. 2013-07-17 14:07:28 -07:00
Makefile Added ZooKeeper dependendencies to the Vitess tree. 2013-07-17 14:07:28 -07:00
README Added ZooKeeper dependendencies to the Vitess tree. 2013-07-17 14:07:28 -07:00
close_test.go Added ZooKeeper dependendencies to the Vitess tree. 2013-07-17 14:07:28 -07:00
helpers.c Fix "invalid heap pointer" crash when built with Go 1.4. 2015-01-12 23:42:26 -08:00
helpers.h Fix "invalid heap pointer" crash when built with Go 1.4. 2015-01-12 23:42:26 -08:00
retry_test.go Added ZooKeeper dependendencies to the Vitess tree. 2013-07-17 14:07:28 -07:00
runserver.go Added ZooKeeper dependendencies to the Vitess tree. 2013-07-17 14:07:28 -07:00
server.go Added ZooKeeper dependendencies to the Vitess tree. 2013-07-17 14:07:28 -07:00
server_test.go Added ZooKeeper dependendencies to the Vitess tree. 2013-07-17 14:07:28 -07:00
suite_test.go Added ZooKeeper dependendencies to the Vitess tree. 2013-07-17 14:07:28 -07:00
zk.go Fix "invalid heap pointer" crash when built with Go 1.4. 2015-01-12 23:42:26 -08:00
zk_test.go Added ZooKeeper dependendencies to the Vitess tree. 2013-07-17 14:07:28 -07:00

README

Check out https://wiki.ubuntu.com/gozk