< prev index next >

src/hotspot/share/runtime/threads.hpp

Print this page

118   static bool is_vm_complete() { return _vm_complete; }
119 #endif // ASSERT
120 
121   // Verification
122   static void verify();
123   static void print_on(outputStream* st, bool print_stacks, bool internal_format, bool print_concurrent_locks, bool print_extended_info);
124   static void print(bool print_stacks, bool internal_format) {
125     // this function is only used by debug.cpp
126     print_on(tty, print_stacks, internal_format, false /* no concurrent lock printed */, false /* simple format */);
127   }
128   static void print_on_error(outputStream* st, Thread* current, char* buf, int buflen);
129   static void print_on_error(Thread* this_thread, outputStream* st, Thread* current, char* buf,
130                              int buflen, bool* found_current);
131   // Print threads busy compiling, and returns the number of printed threads.
132   static unsigned print_threads_compiling(outputStream* st, char* buf, int buflen, bool short_form = false);
133 
134   // Get Java threads that are waiting to enter a monitor.
135   static GrowableArray<JavaThread*>* get_pending_threads(ThreadsList * t_list,
136                                                          int count, address monitor);
137 
138   // Get owning Java thread from the monitor's owner field.
139   static JavaThread *owning_thread_from_monitor_owner(ThreadsList * t_list,
140                                                       address owner);
141 
142   static JavaThread* owning_thread_from_object(ThreadsList* t_list, oop obj);
143   static JavaThread* owning_thread_from_monitor(ThreadsList* t_list, ObjectMonitor* owner);
144 
145   // Number of threads on the active threads list
146   static int number_of_threads()                 { return _number_of_threads; }
147   // Number of non-daemon threads on the active threads list
148   static int number_of_non_daemon_threads()      { return _number_of_non_daemon_threads; }
149 
150   struct Test;                  // For private gtest access.
151 };
152 
153 #endif // SHARE_RUNTIME_THREADS_HPP

118   static bool is_vm_complete() { return _vm_complete; }
119 #endif // ASSERT
120 
121   // Verification
122   static void verify();
123   static void print_on(outputStream* st, bool print_stacks, bool internal_format, bool print_concurrent_locks, bool print_extended_info);
124   static void print(bool print_stacks, bool internal_format) {
125     // this function is only used by debug.cpp
126     print_on(tty, print_stacks, internal_format, false /* no concurrent lock printed */, false /* simple format */);
127   }
128   static void print_on_error(outputStream* st, Thread* current, char* buf, int buflen);
129   static void print_on_error(Thread* this_thread, outputStream* st, Thread* current, char* buf,
130                              int buflen, bool* found_current);
131   // Print threads busy compiling, and returns the number of printed threads.
132   static unsigned print_threads_compiling(outputStream* st, char* buf, int buflen, bool short_form = false);
133 
134   // Get Java threads that are waiting to enter a monitor.
135   static GrowableArray<JavaThread*>* get_pending_threads(ThreadsList * t_list,
136                                                          int count, address monitor);
137 
138   // Get owning Java thread from the basicLock address.
139   static JavaThread *owning_thread_from_stacklock(ThreadsList * t_list, address basicLock);

140 
141   static JavaThread* owning_thread_from_object(ThreadsList* t_list, oop obj);
142   static JavaThread* owning_thread_from_monitor(ThreadsList* t_list, ObjectMonitor* owner);
143 
144   // Number of threads on the active threads list
145   static int number_of_threads()                 { return _number_of_threads; }
146   // Number of non-daemon threads on the active threads list
147   static int number_of_non_daemon_threads()      { return _number_of_non_daemon_threads; }
148 
149   struct Test;                  // For private gtest access.
150 };
151 
152 #endif // SHARE_RUNTIME_THREADS_HPP
< prev index next >