[llvm-commits] [vmkit] r50418 - /vmkit/trunk/lib/JnJVM/Classpath/ClasspathVMField.cpp
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Tue Apr 29 03:34:52 PDT 2008
Author: geoffray
Date: Tue Apr 29 05:34:52 2008
New Revision: 50418
URL: http://llvm.org/viewvc/llvm-project?rev=50418&view=rev
Log:
objectFieldOffset is a virtual method, not static.
Modified:
vmkit/trunk/lib/JnJVM/Classpath/ClasspathVMField.cpp
Modified: vmkit/trunk/lib/JnJVM/Classpath/ClasspathVMField.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/Classpath/ClasspathVMField.cpp?rev=50418&r1=50417&r2=50418&view=diff
==============================================================================
--- vmkit/trunk/lib/JnJVM/Classpath/ClasspathVMField.cpp (original)
+++ vmkit/trunk/lib/JnJVM/Classpath/ClasspathVMField.cpp Tue Apr 29 05:34:52 2008
@@ -376,8 +376,8 @@
JNIEXPORT jlong JNICALL Java_sun_misc_Unsafe_objectFieldOffset(
#ifdef NATIVE_JNI
JNIEnv *env,
-jclass clazz,
-#endif
+#endif
+JavaObject* Unsafe,
JavaObject* Field) {
JavaField* field = (JavaField*)((*Classpath::fieldSlot)((JavaObject*)Field).IntVal.getZExtValue());
return (jlong)field->ptrOffset;
More information about the llvm-commits
mailing list