Merge "Track 64-bit nio changes."
diff --git a/vm/InitRefs.cpp b/vm/InitRefs.cpp
index 19487dc..d8f0697 100644
--- a/vm/InitRefs.cpp
+++ b/vm/InitRefs.cpp
@@ -251,7 +251,7 @@
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 8808a3f..f235835 100644
--- a/vm/Jni.cpp
+++ b/vm/Jni.cpp
@@ -2757,7 +2757,7 @@
// 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);
}
/*