< prev index next >

src/hotspot/share/runtime/threads.hpp

Print this page

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



138 
139   // Number of threads on the active threads list
140   static int number_of_threads()                 { return _number_of_threads; }
141   // Number of non-daemon threads on the active threads list
142   static int number_of_non_daemon_threads()      { return _number_of_non_daemon_threads; }
143 
144   // Deoptimizes all frames tied to marked nmethods
145   static void deoptimized_wrt_marked_nmethods();
146 
147   struct Test;                  // For private gtest access.
148 };
149 
150 #endif // SHARE_RUNTIME_THREADS_HPP

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