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