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