summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-03-29 10:19:31 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-03-29 10:19:31 -0700
commit84975d535edf98e911caf2a1bca1e7810aa03ccb (patch)
treea5b1b4c48d3739173cb6be1f1ccfe13a6b83ab85
parentdf0568374da4856271a1a678208c638a0276b169 (diff)
parent9813216f8845e1c4a6dc4d2a10aa227e7d43f858 (diff)
downloaddalvik-84975d535edf98e911caf2a1bca1e7810aa03ccb.tar.gz
am 9813216f: Merge "Track 64-bit nio changes."
* commit '9813216f8845e1c4a6dc4d2a10aa227e7d43f858': Track 64-bit nio changes.
-rw-r--r--vm/InitRefs.cpp2
-rw-r--r--vm/Jni.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/vm/InitRefs.cpp b/vm/InitRefs.cpp
index 19487dc39..d8f06972a 100644
--- a/vm/InitRefs.cpp
+++ b/vm/InitRefs.cpp
@@ -251,7 +251,7 @@ static bool initFieldOffsets() {
static struct FieldInfo infoBuffer[] = {
{ &gDvm.offJavaNioBuffer_capacity, "capacity", "I" },
- { &gDvm.offJavaNioBuffer_effectiveDirectAddress, "effectiveDirectAddress", "I" },
+ { &gDvm.offJavaNioBuffer_effectiveDirectAddress, "effectiveDirectAddress", "J" },
{ NULL, NULL, NULL }
};
diff --git a/vm/Jni.cpp b/vm/Jni.cpp
index 8808a3f4a..f2358359d 100644
--- a/vm/Jni.cpp
+++ b/vm/Jni.cpp
@@ -2757,7 +2757,7 @@ static void* GetDirectBufferAddress(JNIEnv* env, jobject jbuf) {
// All Buffer objects have an effectiveDirectAddress field.
Object* bufObj = dvmDecodeIndirectRef(ts.self(), jbuf);
- return (void*) dvmGetFieldInt(bufObj, gDvm.offJavaNioBuffer_effectiveDirectAddress);
+ return (void*) dvmGetFieldLong(bufObj, gDvm.offJavaNioBuffer_effectiveDirectAddress);
}
/*