Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- $Id: threads.h 7897 2007-05-11 18:23:27Z twisti $
-
*/
#include "mm/memory.h"
#include "native/jni.h"
+#include "native/localref.h"
#include "native/include/java_lang_Thread.h"
#include "threads/native/lock.h"
struct threadobject {
java_lang_Thread *object; /* link to java.lang.Thread object */
- lock_execution_env_t ee; /* data for the lock implementation */
-
ptrint thinlock; /* pre-computed thin lock value */
s4 index; /* thread index, starting with 1 */
u1 *pc; /* current PC (used for profiling) */
- java_objectheader *_exceptionptr; /* current exception */
+ java_object_t *_exceptionptr; /* current exception */
stackframeinfo *_stackframeinfo; /* current native stackframeinfo */
localref_table *_localref_table; /* JNI local references */
#endif
dumpinfo_t dumpinfo; /* dump memory info structure */
+
+#if defined(ENABLE_DEBUG_FILTER)
+ u2 filterverbosecallctr[2]; /* counters for verbose call filter */
+#endif
+
+#if !defined(NDEBUG)
+ s4 tracejavacallindent;
+ u4 tracejavacallcount;
+#endif
+
+ listnode_t linkage; /* threads-list */
};
#define STACKFRAMEINFO (THREADOBJECT->_stackframeinfo)
+/* counter for verbose call filter ********************************************/
+
+#if defined(ENABLE_DEBUG_FILTER)
+# define FILTERVERBOSECALLCTR (THREADOBJECT->filterverbosecallctr)
+#endif
+
+/* state for trace java call **************************************************/
+
+#if !defined(NDEBUG)
+# define TRACEJAVACALLINDENT (THREADOBJECT->tracejavacallindent)
+# define TRACEJAVACALLCOUNT (THREADOBJECT->tracejavacallcount)
+#endif
/* functions ******************************************************************/
void threads_join_all_threads(void);
void threads_sleep(s8 millis, s4 nanos);
-void threads_yield(void);
bool threads_wait_with_timeout_relative(threadobject *t, s8 millis, s4 nanos);