[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] VMDirectByteBuffer fixes
From: |
Roman Kennke |
Subject: |
[cp-patches] VMDirectByteBuffer fixes |
Date: |
Tue, 10 Jan 2006 14:23:19 +0000 |
In VMDirectByteBuffer.c we have two mistakes.
- In get() and put() we call ReleaseByteArrayElements() with the wrong
pointer because we add the offset directly after GetByteArrayElements().
- In put() we copy something into the array after it is released.
Both are fixed with the attached patch.
2006-01-10 Roman Kennke <address@hidden>
* native/jni/java-nio/java_nio_VMDirectByteBuffer.c
(get): Release the array with the correct pointer.
(put): Release the array with the correct pointer. Copy the array
around _before_ releasing it.
/Roman
patch.diff
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] VMDirectByteBuffer fixes,
Roman Kennke <=