< prev index next >

src/hotspot/share/runtime/os.hpp

Print this page




 522 
 523   static int pd_self_suspend_thread(Thread* thread);
 524 
 525   static ExtendedPC fetch_frame_from_context(const void* ucVoid, intptr_t** sp, intptr_t** fp);
 526   static frame      fetch_frame_from_context(const void* ucVoid);
 527   static frame      fetch_frame_from_ucontext(Thread* thread, void* ucVoid);
 528 
 529   static void breakpoint();
 530   static bool start_debugging(char *buf, int buflen);
 531 
 532   static address current_stack_pointer();
 533   static address current_stack_base();
 534   static size_t current_stack_size();
 535 
 536   static void verify_stack_alignment() PRODUCT_RETURN;
 537 
 538   static bool message_box(const char* title, const char* message);
 539   static char* do_you_want_to_debug(const char* message);
 540 
 541   // run cmd in a separate process and return its exit code; or -1 on failures
 542   static int fork_and_exec(char *cmd);
 543 
 544   // Call ::exit() on all platforms but Windows
 545   static void exit(int num);
 546 
 547   // Terminate the VM, but don't exit the process
 548   static void shutdown();
 549 
 550   // Terminate with an error.  Default is to generate a core file on platforms
 551   // that support such things.  This calls shutdown() and then aborts.
 552   static void abort(bool dump_core, void *siginfo, const void *context);
 553   static void abort(bool dump_core = true);
 554 
 555   // Die immediately, no exit hook, no abort hook, no cleanup.
 556   static void die();
 557 
 558   // File i/o operations
 559   static const int default_file_open_flags();
 560   static int open(const char *path, int oflag, int mode);
 561   static FILE* open(int fd, const char* mode);
 562   static FILE* fopen(const char* path, const char* mode);




 522 
 523   static int pd_self_suspend_thread(Thread* thread);
 524 
 525   static ExtendedPC fetch_frame_from_context(const void* ucVoid, intptr_t** sp, intptr_t** fp);
 526   static frame      fetch_frame_from_context(const void* ucVoid);
 527   static frame      fetch_frame_from_ucontext(Thread* thread, void* ucVoid);
 528 
 529   static void breakpoint();
 530   static bool start_debugging(char *buf, int buflen);
 531 
 532   static address current_stack_pointer();
 533   static address current_stack_base();
 534   static size_t current_stack_size();
 535 
 536   static void verify_stack_alignment() PRODUCT_RETURN;
 537 
 538   static bool message_box(const char* title, const char* message);
 539   static char* do_you_want_to_debug(const char* message);
 540 
 541   // run cmd in a separate process and return its exit code; or -1 on failures
 542   static int fork_and_exec(char *cmd, bool use_vfork_if_available = false);
 543 
 544   // Call ::exit() on all platforms but Windows
 545   static void exit(int num);
 546 
 547   // Terminate the VM, but don't exit the process
 548   static void shutdown();
 549 
 550   // Terminate with an error.  Default is to generate a core file on platforms
 551   // that support such things.  This calls shutdown() and then aborts.
 552   static void abort(bool dump_core, void *siginfo, const void *context);
 553   static void abort(bool dump_core = true);
 554 
 555   // Die immediately, no exit hook, no abort hook, no cleanup.
 556   static void die();
 557 
 558   // File i/o operations
 559   static const int default_file_open_flags();
 560   static int open(const char *path, int oflag, int mode);
 561   static FILE* open(int fd, const char* mode);
 562   static FILE* fopen(const char* path, const char* mode);


< prev index next >