34 extern void vm_exit(int code); 35 36 // Wrapper for ::exit() 37 extern void vm_direct_exit(int code); 38 39 // Shutdown the VM but do not exit the process 40 extern void vm_shutdown(); 41 // Shutdown the VM and abort the process 42 extern void vm_abort(bool dump_core=true); 43 44 // Trigger any necessary notification of the VM being shutdown 45 extern void notify_vm_shutdown(); 46 47 // VM exit if error occurs during initialization of VM 48 extern void vm_exit_during_initialization(); 49 extern void vm_exit_during_initialization(Handle exception); 50 extern void vm_exit_during_initialization(Symbol* exception_name, const char* message); 51 extern void vm_exit_during_initialization(const char* error, const char* message = NULL); 52 extern void vm_shutdown_during_initialization(const char* error, const char* message = NULL); 53 54 /** 55 * With the integration of the changes to handle the version string 56 * as defined by JEP-223, most of the code related to handle the version 57 * string prior to JDK 1.6 was removed (partial initialization) 58 */ 59 class JDK_Version { 60 friend class VMStructs; 61 friend class Universe; 62 friend void JDK_Version_init(); 63 private: 64 65 static JDK_Version _current; 66 static const char* _runtime_name; 67 static const char* _runtime_version; 68 69 uint8_t _major; 70 uint8_t _minor; 71 uint8_t _security; 72 uint8_t _patch; 73 uint8_t _build; | 34 extern void vm_exit(int code); 35 36 // Wrapper for ::exit() 37 extern void vm_direct_exit(int code); 38 39 // Shutdown the VM but do not exit the process 40 extern void vm_shutdown(); 41 // Shutdown the VM and abort the process 42 extern void vm_abort(bool dump_core=true); 43 44 // Trigger any necessary notification of the VM being shutdown 45 extern void notify_vm_shutdown(); 46 47 // VM exit if error occurs during initialization of VM 48 extern void vm_exit_during_initialization(); 49 extern void vm_exit_during_initialization(Handle exception); 50 extern void vm_exit_during_initialization(Symbol* exception_name, const char* message); 51 extern void vm_exit_during_initialization(const char* error, const char* message = NULL); 52 extern void vm_shutdown_during_initialization(const char* error, const char* message = NULL); 53 54 extern void vm_exit_during_cds_dumping(const char* error, const char* message = NULL); 55 56 /** 57 * With the integration of the changes to handle the version string 58 * as defined by JEP-223, most of the code related to handle the version 59 * string prior to JDK 1.6 was removed (partial initialization) 60 */ 61 class JDK_Version { 62 friend class VMStructs; 63 friend class Universe; 64 friend void JDK_Version_init(); 65 private: 66 67 static JDK_Version _current; 68 static const char* _runtime_name; 69 static const char* _runtime_version; 70 71 uint8_t _major; 72 uint8_t _minor; 73 uint8_t _security; 74 uint8_t _patch; 75 uint8_t _build; |