in java.lang.reflect.Method.
* src/native/vm/Method.c (toolbox/logging.h, vm/jit/stacktrace.h):
Removed.
* src/native/vm/VMSystem.c (identityHashCode): Use casts.
Changes: Joseph Wenninger
Christian Thalinger
- $Id: Method.c 4406 2006-02-03 13:19:36Z twisti $
+ $Id: Method.c 4485 2006-02-12 00:30:13Z twisti $
*/
#include "native/include/java_lang_Object.h"
#include "native/include/java_lang_Class.h"
#include "native/include/java_lang_reflect_Method.h"
-#include "toolbox/logging.h"
#include "vm/access.h"
#include "vm/global.h"
#include "vm/builtin.h"
#include "vm/exceptions.h"
#include "vm/initialize.h"
#include "vm/stringlocal.h"
-#include "vm/jit/stacktrace.h"
/*
Changes: Joseph Wenninger
Christian Thalinger
- $Id: VMClass.c 4357 2006-01-22 23:33:38Z twisti $
+ $Id: VMClass.c 4485 2006-02-12 00:30:13Z twisti $
*/
+#include "config.h"
+
+#include <assert.h>
#include <string.h>
-#include "config.h"
#include "vm/types.h"
#include "mm/memory.h"
rm = (java_lang_reflect_Method *) o;
- rm->declaringClass = klass;
+ rm->declaringClass = m->class;
rm->name = javastring_new(m->name);
rm->slot = i;
Changes: Joseph Wenninger
Christian Thalinger
- $Id: VMSystem.c 4357 2006-01-22 23:33:38Z twisti $
+ $Id: VMSystem.c 4485 2006-02-12 00:30:13Z twisti $
*/
* Method: identityHashCode
* Signature: (Ljava/lang/Object;)I
*/
-JNIEXPORT s4 JNICALL Java_java_lang_VMSystem_identityHashCode(JNIEnv *env, jclass clazz, java_lang_Object *par1)
+JNIEXPORT s4 JNICALL Java_java_lang_VMSystem_identityHashCode(JNIEnv *env, jclass clazz, java_lang_Object *o)
{
- return ((char *) par1) - ((char *) 0);
+ return (s4) ((ptrint) o);
}