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