You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix transient pointer deallocation in ByteArrayProxy
JNR-FFI's TransientNativeMemory was prematurely deallocating off-heap
memory before LMDB syscalls completed. Return transient pointers from
BufferProxy.in() and use reachability fencing at all call sites to
prevent premature GC.
BufferProxy and KeyVal were also simplified to remove pointer address
passing, given this is inexpensively available from the
Pointer.address() accessor (which is backed by a final field).
This is an API breaking change if external users implemented their own
BufferProxy, however it is considered unlikely many (if any) users
would have ever done this.
Fixes#252
0 commit comments