go-ceph/internal
Sven Anderson 780f7014a2 internal: use runtime.Pinner in PtrGuard
Since Go 1.21 there is a runtime.Pinner API that allows to safely
pass structures with embedded Go pointers to C code.  In earlier Go
version we know that the garbage collector is non-moving, so it is
safe to pass Go pointers to C as well. This change adds two
implementations of PtrGuard, one for pre 1.21 that is basically a
no-op, and one for 1.21+ that uses runtime.Pinner.

Signed-off-by: Sven Anderson <sven@redhat.com>
2023-10-23 14:21:27 +00:00
..
admintest admintest: new helper pkg for */admin type test suites 2022-02-08 15:55:02 +00:00
callbacks callbacks: replace index with unique ID 2020-11-05 17:16:32 +00:00
commands commands: add test cases for FilterBodyPrefix 2022-04-06 17:56:33 +00:00
cutil internal: use runtime.Pinner in PtrGuard 2023-10-23 14:21:27 +00:00
errutil errutil: replace unused StrError with FormatErrorCode function 2020-08-10 13:03:24 -04:00
log common: implement a common log package 2022-02-28 12:03:04 +00:00
retry retry: add a helper lib for retrying common operations 2020-04-20 15:08:36 -04:00
timespec timespec: add a helper function to convert from Timespec to C 2021-01-12 14:47:30 +00:00
util rgw/admin: fix tests for quincy 2022-05-19 14:09:21 +00:00