Commit 228366cd by Tom Tromey Committed by Tom Tromey

natClassLoader.cc (_Jv_NewArrayClass): Don't reference NUM_OBJECT_METHODS.

	* java/lang/natClassLoader.cc (_Jv_NewArrayClass): Don't
	reference NUM_OBJECT_METHODS.
	* include/jvm.h (NUM_OBJECT_METHODS): Removed.

From-SVN: r108956
parent 3bfdb124
2005-12-22 Tom Tromey <tromey@redhat.com>
* java/lang/natClassLoader.cc (_Jv_NewArrayClass): Don't
reference NUM_OBJECT_METHODS.
* include/jvm.h (NUM_OBJECT_METHODS): Removed.
2005-12-18 Anthony Green <green@redhat.com> 2005-12-18 Anthony Green <green@redhat.com>
* gnu/java/net/natPlainDatagramSocketImplPosix.cc (getLocalAddress): * gnu/java/net/natPlainDatagramSocketImplPosix.cc (getLocalAddress):
......
...@@ -75,10 +75,6 @@ struct _Jv_VTable ...@@ -75,10 +75,6 @@ struct _Jv_VTable
static _Jv_VTable *new_vtable (int count); static _Jv_VTable *new_vtable (int count);
}; };
// Number of virtual methods on object. FIXME: it sucks that we have
// to keep this up to date by hand.
#define NUM_OBJECT_METHODS 5
union _Jv_word union _Jv_word
{ {
jobject o; jobject o;
......
...@@ -415,8 +415,6 @@ _Jv_NewArrayClass (jclass element, java::lang::ClassLoader *loader, ...@@ -415,8 +415,6 @@ _Jv_NewArrayClass (jclass element, java::lang::ClassLoader *loader,
// Note that `vtable_method_count' doesn't include the initial // Note that `vtable_method_count' doesn't include the initial
// gc_descr slot. // gc_descr slot.
JvAssert (java::lang::Object::class$.vtable_method_count
== NUM_OBJECT_METHODS);
int dm_count = java::lang::Object::class$.vtable_method_count; int dm_count = java::lang::Object::class$.vtable_method_count;
// Create a new vtable by copying Object's vtable. // Create a new vtable by copying Object's vtable.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment