< prev index next >

src/hotspot/share/runtime/thread.hpp

Print this page
rev 56251 : imported patch 8226705-v1


1871 
1872   // Print stack trace in external format
1873   void print_stack_on(outputStream* st);
1874   void print_stack() { print_stack_on(tty); }
1875 
1876   // Print stack traces in various internal formats
1877   void trace_stack()                             PRODUCT_RETURN;
1878   void trace_stack_from(vframe* start_vf)        PRODUCT_RETURN;
1879   void trace_frames()                            PRODUCT_RETURN;
1880 
1881   // Print an annotated view of the stack frames
1882   void print_frame_layout(int depth = 0, bool validate_only = false) NOT_DEBUG_RETURN;
1883   void validate_frame_layout() {
1884     print_frame_layout(0, true);
1885   }
1886 
1887   // Function for testing deoptimization
1888   void deoptimize();
1889   void make_zombies();
1890 
1891   void deoptimized_wrt_marked_nmethods();
1892 
1893  public:
1894   // Returns the running thread as a JavaThread
1895   static inline JavaThread* current();
1896 
1897   // Returns the active Java thread.  Do not use this if you know you are calling
1898   // from a JavaThread, as it's slower than JavaThread::current.  If called from
1899   // the VMThread, it also returns the JavaThread that instigated the VMThread's
1900   // operation.  You may not want that either.
1901   static JavaThread* active();
1902 
1903   inline CompilerThread* as_CompilerThread();
1904 
1905  protected:
1906   virtual void pre_run();
1907   virtual void run();
1908   void thread_main_inner();
1909   virtual void post_run();
1910 
1911 




1871 
1872   // Print stack trace in external format
1873   void print_stack_on(outputStream* st);
1874   void print_stack() { print_stack_on(tty); }
1875 
1876   // Print stack traces in various internal formats
1877   void trace_stack()                             PRODUCT_RETURN;
1878   void trace_stack_from(vframe* start_vf)        PRODUCT_RETURN;
1879   void trace_frames()                            PRODUCT_RETURN;
1880 
1881   // Print an annotated view of the stack frames
1882   void print_frame_layout(int depth = 0, bool validate_only = false) NOT_DEBUG_RETURN;
1883   void validate_frame_layout() {
1884     print_frame_layout(0, true);
1885   }
1886 
1887   // Function for testing deoptimization
1888   void deoptimize();
1889   void make_zombies();
1890 
1891   void deoptimize_marked_methods();
1892 
1893  public:
1894   // Returns the running thread as a JavaThread
1895   static inline JavaThread* current();
1896 
1897   // Returns the active Java thread.  Do not use this if you know you are calling
1898   // from a JavaThread, as it's slower than JavaThread::current.  If called from
1899   // the VMThread, it also returns the JavaThread that instigated the VMThread's
1900   // operation.  You may not want that either.
1901   static JavaThread* active();
1902 
1903   inline CompilerThread* as_CompilerThread();
1904 
1905  protected:
1906   virtual void pre_run();
1907   virtual void run();
1908   void thread_main_inner();
1909   virtual void post_run();
1910 
1911 


< prev index next >