< prev index next >

src/hotspot/share/runtime/thread.hpp

Print this page
rev 54620 : imported patch 8222637
rev 54621 : imported patch 8221734-v1


1907 
1908   // Print stack traces in various internal formats
1909   void trace_stack()                             PRODUCT_RETURN;
1910   void trace_stack_from(vframe* start_vf)        PRODUCT_RETURN;
1911   void trace_frames()                            PRODUCT_RETURN;
1912   void trace_oops()                              PRODUCT_RETURN;
1913 
1914   // Print an annotated view of the stack frames
1915   void print_frame_layout(int depth = 0, bool validate_only = false) NOT_DEBUG_RETURN;
1916   void validate_frame_layout() {
1917     print_frame_layout(0, true);
1918   }
1919 
1920   // Returns the number of stack frames on the stack
1921   int depth() const;
1922 
1923   // Function for testing deoptimization
1924   void deoptimize();
1925   void make_zombies();
1926 
1927   void deoptimized_wrt_marked_nmethods();
1928 
1929  public:
1930   // Returns the running thread as a JavaThread
1931   static inline JavaThread* current();
1932 
1933   // Returns the active Java thread.  Do not use this if you know you are calling
1934   // from a JavaThread, as it's slower than JavaThread::current.  If called from
1935   // the VMThread, it also returns the JavaThread that instigated the VMThread's
1936   // operation.  You may not want that either.
1937   static JavaThread* active();
1938 
1939   inline CompilerThread* as_CompilerThread();
1940 
1941  protected:
1942   virtual void pre_run();
1943   virtual void run();
1944   void thread_main_inner();
1945   virtual void post_run();
1946 
1947 




1907 
1908   // Print stack traces in various internal formats
1909   void trace_stack()                             PRODUCT_RETURN;
1910   void trace_stack_from(vframe* start_vf)        PRODUCT_RETURN;
1911   void trace_frames()                            PRODUCT_RETURN;
1912   void trace_oops()                              PRODUCT_RETURN;
1913 
1914   // Print an annotated view of the stack frames
1915   void print_frame_layout(int depth = 0, bool validate_only = false) NOT_DEBUG_RETURN;
1916   void validate_frame_layout() {
1917     print_frame_layout(0, true);
1918   }
1919 
1920   // Returns the number of stack frames on the stack
1921   int depth() const;
1922 
1923   // Function for testing deoptimization
1924   void deoptimize();
1925   void make_zombies();
1926 
1927   void deoptimize_marked_methods(bool in_handshake);
1928 
1929  public:
1930   // Returns the running thread as a JavaThread
1931   static inline JavaThread* current();
1932 
1933   // Returns the active Java thread.  Do not use this if you know you are calling
1934   // from a JavaThread, as it's slower than JavaThread::current.  If called from
1935   // the VMThread, it also returns the JavaThread that instigated the VMThread's
1936   // operation.  You may not want that either.
1937   static JavaThread* active();
1938 
1939   inline CompilerThread* as_CompilerThread();
1940 
1941  protected:
1942   virtual void pre_run();
1943   virtual void run();
1944   void thread_main_inner();
1945   virtual void post_run();
1946 
1947 


< prev index next >