зеркало из https://github.com/github/vitess-gh.git
d18bdd4a0d
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. |
||
---|---|---|
.. | ||
example | ||
.lbox | ||
LICENSE | ||
Makefile | ||
README | ||
close_test.go | ||
helpers.c | ||
helpers.h | ||
retry_test.go | ||
runserver.go | ||
server.go | ||
server_test.go | ||
suite_test.go | ||
zk.go | ||
zk_test.go |
README
Check out https://wiki.ubuntu.com/gozk