go-ceph/internal
Sven Anderson c8f26a841b rbd: eliminate invalid unsafe.Pointers
Although it seems to be stable with the current Go versions,
unsafe.Pointers that are created by applying arithmetic on nil
pointers are explicitly not allowed[1], and could potentially lead to
panics by the garbage collector.  To be on the safe side, this change
goes back to minimal inline wrappers for the callback registrations,
which should be zero-cost.  For the callbacks themselves fortunately
no wrappers are required, because CGo happily converts void* to
uintptr arguments.  The potentially problematic VoidPtr helper is
removed again.

[1] https://golang.org/pkg/unsafe/#Pointer

Signed-off-by: Sven Anderson <sven@redhat.com>
2020-11-09 08:58:22 +00:00
..
callbacks callbacks: replace index with unique ID 2020-11-05 17:16:32 +00:00
cutil rbd: eliminate invalid unsafe.Pointers 2020-11-09 08:58:22 +00:00
errutil errutil: replace unused StrError with FormatErrorCode function 2020-08-10 13:03:24 -04:00
retry retry: add a helper lib for retrying common operations 2020-04-20 15:08:36 -04:00
timespec timespec: move to internal pkg 2020-06-22 09:22:18 -04:00