Permalink
Browse files

implement JVM_ConstantPoolGetLongAt

  • Loading branch information...
1 parent 73547db commit 83670d1df7c206da78312949ce1ff4f28251443a @dicej dicej committed Apr 9, 2013
Showing with 9 additions and 2 deletions.
  1. +9 −2 src/classpath-openjdk.cpp
View
@@ -4806,8 +4806,15 @@ EXPORT(JVM_ConstantPoolGetIntAt)(Thread* t, jobject, jobject pool, jint index)
}
extern "C" JNIEXPORT jlong JNICALL
-EXPORT(JVM_ConstantPoolGetLongAt)(Thread*, jobject, jobject, jint)
-{ abort(); }
+EXPORT(JVM_ConstantPoolGetLongAt)(Thread* t, jobject, jobject pool, jint index)
+{
+ ENTER(t, Thread::ActiveState);
+
+ uint64_t v;
+ memcpy(&v, &singletonValue(t, *pool, index - 1), 8);
+
+ return v;
+}
extern "C" JNIEXPORT jfloat JNICALL
EXPORT(JVM_ConstantPoolGetFloatAt)(Thread*, jobject, jobject, jint)

0 comments on commit 83670d1

Please sign in to comment.