* src/native/localref.c: Added new file.
[cacao.git] / src / native / jni.h
index 7ca7dc9830b9b883131b85c61c1966884687f1b9..e295b00f14509a6b344ce669ddf3a831d4344d72 100644 (file)
@@ -22,7 +22,7 @@
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
 
-   $Id: jni.h 8295 2007-08-11 17:57:24Z michi $
+   $Id: jni.h 8297 2007-08-12 00:02:48Z michi $
 
 */
 
 #ifndef _JNI_H
 #define _JNI_H
 
-/* forward typedefs ***********************************************************/
-
-typedef struct localref_table localref_table;
-
 
 #include "vm/types.h"
 
@@ -99,35 +95,6 @@ extern const struct JNIInvokeInterface_ _Jv_JNIInvokeInterface;
 extern struct JNINativeInterface_ _Jv_JNINativeInterface;
 
 
-/* local reference table ******************************************************/
-
-#define LOCALREFTABLE_CAPACITY    16
-
-/* localref_table **************************************************************
-
-   ATTENTION: keep this structure a multiple of 8-bytes!!! This is
-   essential for the native stub on 64-bit architectures.
-
-*******************************************************************************/
-
-struct localref_table {
-       s4                 capacity;        /* table size                         */
-       s4                 used;            /* currently used references          */
-       s4                 localframes;     /* number of current frames           */
-       s4                 PADDING;         /* 8-byte padding                     */
-       localref_table    *prev;            /* link to prev table (LocalFrame)    */
-       java_object_t     *refs[LOCALREFTABLE_CAPACITY]; /* references            */
-};
-
-#if defined(ENABLE_THREADS)
-#define LOCALREFTABLE    (THREADOBJECT->_localref_table)
-#else
-extern localref_table *_no_threads_localref_table;
-
-#define LOCALREFTABLE    (_no_threads_localref_table)
-#endif
-
-
 /* hashtable_global_ref_entry *************************************************/
 
 typedef struct hashtable_global_ref_entry hashtable_global_ref_entry;
@@ -143,7 +110,6 @@ struct hashtable_global_ref_entry {
 
 /* initialize JNI subsystem */
 bool jni_init(void);
-bool jni_init_localref_table(void);
 
 java_handle_t *_Jv_jni_invokeNative(methodinfo *m, java_handle_t *o,
                                                                                java_objectarray *params);