54 printf(
"Full thread dump CACAO "VERSION_FULL
":\n");
212 class comparator :
public std::binary_function<threadobject*, int32_t, bool> {
215 return (t->
index == index);
286 if (needs_deactivate)
void dump_threads()
Dumps info for all threads running in the VM.
#define LLNI_equals(obj1, obj2, result)
bool threads_suspend_thread(threadobject *thread, SuspendReason reason)
Suspend the passed thread.
threadobject * get_thread_by_index(int32_t index)
Return the thread object with the given index.
void get_active_java_threads(List< threadobject * > &list)
Fills the passed list with all currently active threads which should be visible to Java...
typedef void(JNICALL *jvmtiEventSingleStep)(jvmtiEnv *jvmti_env
static bool thread_is_daemon(threadobject *t)
int32_t get_number_of_daemon_java_threads()
Return the number of daemon threads visible to Java.
List< threadobject * > _free_thread_list
int32_t get_number_of_non_daemon_threads()
Return the number of non-daemon threads.
static ThreadList * the_threadlist
void release_thread(threadobject *t, bool needs_deactivate)
Release the thread.
void remove_from_active_thread_list(threadobject *t)
void get_active_threads(List< threadobject * > &list)
Fills the passed list with all currently active threads.
void deactivate_thread(threadobject *t)
bool operator()(const threadobject *t, const int32_t index) const
void stacktrace_print_of_thread(threadobject *t)
Helper class used to implicitly acquire and release a mutex within a method scope.
void get_free_thread(threadobject **t, int32_t *index)
Get the next free thread object.
void threads_impl_clear_heap_pointers(threadobject *t)
void thread_print_info(threadobject *t)
threadobject * get_thread_from_java_object(java_handle_t *h)
Return the Java thread object from the given thread object.
List< threadobject * > _active_thread_list
bool threads_resume_thread(threadobject *thread, SuspendReason reason)
Resumes execution of the passed thread.