GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — ByteArrayProxy data corruption due to pointer getting GC'd? · Issue #252 · lmdbjava/lmdbjava Closed Labels bugAn issue relates to behaviour that violates the intention of the libraryAn issue relates to behaviour that violates the intention of the library DescriptionHey, I've encountered an issue similar to this one: #207 . One key difference is that I use I'm using the newest lmdbjava along with lmdb binary built from newest version (commit). So I've been following the steps from the mentioned issue and it's true that adding @Override protected void in(final byte[] buffer, final Pointer ptr, final long ptrAddr) { final Pointer pointer = MEM_MGR.allocateDirect(buffer.length); pointer.put(0, buffer, 0, buffer.length); ptr.putLong(STRUCT_FIELD_OFFSET_SIZE, buffer.length); ptr.putAddress(STRUCT_FIELD_OFFSET_DATA, pointer.address()); } What worries me is that the What I'm currently testing is adding a static list of references to pointers inside the proxy, and then manually clearing it once transaction is done: bdsystems@9e5eee9 What do you think? Could that be the bug, or is my hypothesis wrong? I'm new to java memory management and jnr-ffi in particular so please correct me if my reasoning is faulty. Activity
MetadataMetadataAssigneesLabelsbugAn issue relates to behaviour that violates the intention of the libraryAn issue relates to behaviour that violates the intention of the library TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |