diff options
author | (no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-15 15:33:23 +0000 |
---|---|---|
committer | (no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-15 15:33:23 +0000 |
commit | 1be77ea1628196d60a1d78d8748c2584019287f9 (patch) | |
tree | 0d603b99106e22855fafd93ea797dc65f47bf1ee /libjava/java/lang/Object.h | |
parent | ad1b99fa4f13bf490ac74209b0850291849c17de (diff) |
This commit was manufactured by cvs2svn to create tagbounded-pointers-merge-20000811
'bounded-pointers-merge-20000811'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/tags/bounded-pointers-merge-20000811@35723 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/lang/Object.h')
-rw-r--r-- | libjava/java/lang/Object.h | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/libjava/java/lang/Object.h b/libjava/java/lang/Object.h deleted file mode 100644 index 2ed6d155a2e..00000000000 --- a/libjava/java/lang/Object.h +++ /dev/null @@ -1,74 +0,0 @@ -// Object.h - Header file for java.lang.Object. -*- c++ -*- - -/* Copyright (C) 1998, 1999, 2000 Free Software Foundation - - This file is part of libgcj. - -This software is copyrighted work licensed under the terms of the -Libgcj License. Please consult the file "LIBGCJ_LICENSE" for -details. */ - -#ifndef __JAVA_LANG_OBJECT_H__ -#define __JAVA_LANG_OBJECT_H__ - -#pragma interface - -#include <gcj/javaprims.h> - -// This class is mainly here as a kludge to get G++ to allocate -// vtable pointer as the *first* word of each Object, instead of -// the second word (following sync_info). Note that various pieces of -// code know that finalize() is the first method. For instance, -// Object.java knows this, as does _Jv_AllocObject. - -struct _JvObjectPrefix -{ -protected: - // This is disguised as the C++ vtbl. - // _Jv_VTable* vtable; - - virtual void finalize () = 0; -}; - -class java::lang::Object : public _JvObjectPrefix -{ -public: - // Order must match order in Object.java. - jclass getClass (void); - virtual jint hashCode (void); - void notify (void); - void notifyAll (void); - void wait (jlong timeout, jint nanos); - virtual jboolean equals (jobject obj); - Object (void); - virtual jstring toString (void); - void wait (void); - void wait (jlong timeout); - - friend jint _Jv_MonitorEnter (jobject obj); - friend jint _Jv_MonitorExit (jobject obj); - friend void _Jv_InitializeSyncMutex (void); - friend void _Jv_FinalizeObject (jobject obj); - -#ifdef JV_MARKOBJ_DECL - friend JV_MARKOBJ_DECL; -#endif -#ifdef JV_MARKARRAY_DECL - friend JV_MARKARRAY_DECL; -#endif - -protected: - virtual jobject clone (void); - virtual void finalize (void); - -private: - // This does not actually refer to a Java object. Instead it is a - // placeholder for a piece of internal data (the synchronization - // information). - jobject sync_info; - - // Initialize the sync_info field. - void sync_init (void); -}; - -#endif /* __JAVA_LANG_OBJECT_H__ */ |