Martin Platter
Christian Thalinger
- $Id: jni.c 3505 2005-10-26 20:41:49Z twisti $
+ $Id: jni.c 3549 2005-11-03 20:40:52Z twisti $
*/
/* local reference table ******************************************************/
-#if defined(USE_THREADS)
-#define LOCALREFTABLE (THREADINFO->_localref_table)
-#else
-#define LOCALREFTABLE (_no_threads_localref_table)
-#endif
-
#if !defined(USE_THREADS)
-static localref_table *_no_threads_localref_table;
+localref_table *_no_threads_localref_table;
#endif
Changes: Christian Thalinger
- $Id: jni.h 3408 2005-10-12 08:47:23Z twisti $
+ $Id: jni.h 3549 2005-11-03 20:40:52Z twisti $
*/
java_objectheader *refs[LOCALREFTABLE_CAPACITY]; /* references */
};
+#if defined(USE_THREADS)
+#define LOCALREFTABLE (THREADINFO->_localref_table)
+#else
+extern localref_table *_no_threads_localref_table;
+
+#define LOCALREFTABLE (_no_threads_localref_table)
+#endif
+
#define setField(obj,typ,var,val) *((typ*) ((long int) obj + (long int) var->offset))=val;
#define getField(obj,typ,var) *((typ*) ((long int) obj + (long int) var->offset))