* Patch: FYI: remove NUM_OBJECT_METHODS macro
@ 2005-12-22 17:29 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2005-12-22 17:29 UTC (permalink / raw)
To: Java Patch List
I'm checking this in on the trunk and the 4.1 branch.
This removes a useless macro and its correspondingly confusing comment.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* java/lang/natClassLoader.cc (_Jv_NewArrayClass): Don't
reference NUM_OBJECT_METHODS.
* include/jvm.h (NUM_OBJECT_METHODS): Removed.
Index: java/lang/natClassLoader.cc
===================================================================
--- java/lang/natClassLoader.cc (revision 108588)
+++ java/lang/natClassLoader.cc (working copy)
@@ -415,8 +415,6 @@
// 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.
Index: include/jvm.h
===================================================================
--- include/jvm.h (revision 108588)
+++ include/jvm.h (working copy)
@@ -75,10 +75,6 @@
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-12-22 17:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-22 17:29 Patch: FYI: remove NUM_OBJECT_METHODS macro Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).