< prev index next >

src/hotspot/share/runtime/threads.hpp

Print this page
*** 131,12 ***
    // Get Java threads that are waiting to enter a monitor.
    static GrowableArray<JavaThread*>* get_pending_threads(ThreadsList * t_list,
                                                           int count, address monitor);
  
    // Get owning Java thread from the monitor's owner field.
!   static JavaThread *owning_thread_from_monitor_owner(ThreadsList * t_list,
!                                                       address owner);
  
    // Number of threads on the active threads list
    static int number_of_threads()                 { return _number_of_threads; }
    // Number of non-daemon threads on the active threads list
    static int number_of_non_daemon_threads()      { return _number_of_non_daemon_threads; }
--- 131,15 ---
    // Get Java threads that are waiting to enter a monitor.
    static GrowableArray<JavaThread*>* get_pending_threads(ThreadsList * t_list,
                                                           int count, address monitor);
  
    // Get owning Java thread from the monitor's owner field.
! private:
!   static JavaThread* owning_thread_impl(ThreadsList * t_list, oop obj);
+ public:
+   static JavaThread* owning_thread_from_object(ThreadsList * t_list, oop obj, ObjectMonitor** monitor_out);
+   static JavaThread* owning_thread_from_monitor(ThreadsList * t_list, ObjectMonitor* owner);
  
    // Number of threads on the active threads list
    static int number_of_threads()                 { return _number_of_threads; }
    // Number of non-daemon threads on the active threads list
    static int number_of_non_daemon_threads()      { return _number_of_non_daemon_threads; }
< prev index next >