Skip to content

Fix bytearrayproxy bug#1

Merged
oti-dev merged 25 commits into
masterfrom
fix-bytearrayproxy-bug
Oct 28, 2025
Merged

Fix bytearrayproxy bug#1
oti-dev merged 25 commits into
masterfrom
fix-bytearrayproxy-bug

Conversation

@oti-dev

@oti-dev oti-dev commented Oct 27, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

LambdAurora and others added 25 commits July 8, 2025 18:10
TODO: address failing dbiWithComparatorThreadSafetyByteArray test.
This proves to be more reliable than Agreno's UnsafeBuffers.
This matches the existing LICENSE.TXT spelling and the spelling of the
license we are using: https://httpd.apache.org/docs/trunk/license.html
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 lmdbjava#252
…ignored

Fix resulting buffer from BufferProxy's out method being ignored.
@oti-dev
oti-dev merged commit a59255f into master Oct 28, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants