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
This commit is contained in:
Tom Tromey 2005-12-22 17:33:05 +00:00 committed by Tom Tromey
parent 3bfdb124af
commit 228366cdd2
3 changed files with 6 additions and 6 deletions

View File

@ -1,3 +1,9 @@
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>
* gnu/java/net/natPlainDatagramSocketImplPosix.cc (getLocalAddress):

View File

@ -75,10 +75,6 @@ struct _Jv_VTable
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
{
jobject o;

View File

@ -415,8 +415,6 @@ _Jv_NewArrayClass (jclass element, java::lang::ClassLoader *loader,
// Note that `vtable_method_count' doesn't include the initial
// gc_descr slot.
JvAssert (java::lang::Object::class$.vtable_method_count
== NUM_OBJECT_METHODS);
int dm_count = java::lang::Object::class$.vtable_method_count;
// Create a new vtable by copying Object's vtable.