aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/lang/Object.h
diff options
context:
space:
mode:
authorBryce McKinlay <bryce@albatross.co.nz>2001-01-17 10:22:33 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2001-01-17 10:22:33 +0000
commit607adf67a0b885a747fcc6995f8545a26f006661 (patch)
tree611e7282c479126e4aaf4a31ed1c07a8bd3e6df8 /libjava/java/lang/Object.h
parent61a24907052a2cdcf421ff28fa91a47668c9d300 (diff)
downloadgcc-607adf67a0b885a747fcc6995f8545a26f006661.zip
gcc-607adf67a0b885a747fcc6995f8545a26f006661.tar.gz
gcc-607adf67a0b885a747fcc6995f8545a26f006661.tar.bz2
Class.h (isInterface): Move implementation from natClass.cc.
* java/lang/Class.h (isInterface): Move implementation from natClass.cc. Declare inline. (Class): Add default constructor. * java/lang/Object.h: Update comments. * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to initialize superclass, saving a call if super is already initialized. From-SVN: r39091
Diffstat (limited to 'libjava/java/lang/Object.h')
-rw-r--r--libjava/java/lang/Object.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/libjava/java/lang/Object.h b/libjava/java/lang/Object.h
index 81b5a66..352d48b 100644
--- a/libjava/java/lang/Object.h
+++ b/libjava/java/lang/Object.h
@@ -16,15 +16,13 @@ details. */
#include <gcj/javaprims.h>
// This class is mainly here as a kludge to get G++ to allocate two
-// extra entries in the vtable. We will use them to store data. This
-// allows us to support the new C++ ABI.
-
+// extra entries in each vtable.
struct _JvObjectPrefix
{
protected:
// New ABI Compatibility Dummy, #1 and 2.
- virtual void nacd_1 (void) {};
- virtual void nacd_2 (void) {};
+ virtual void nacd_1 (void) {}; // This slot really contains the Class pointer.
+ virtual void nacd_2 (void) {}; // Actually the GC bitmap marking descriptor.
};
class java::lang::Object : public _JvObjectPrefix