42 extern void vm_direct_exit(int code);
43 extern void vm_direct_exit(int code, const char* message);
44
45 // Shutdown the VM but do not exit the process
46 extern void vm_shutdown();
47 // Shutdown the VM and abort the process
48 extern void vm_abort(bool dump_core=true);
49
50 // Trigger any necessary notification of the VM being shutdown
51 extern void notify_vm_shutdown();
52
53 // VM exit if error occurs during initialization of VM
54 extern void vm_exit_during_initialization();
55 extern void vm_exit_during_initialization(Handle exception);
56 extern void vm_exit_during_initialization(Symbol* exception_name, const char* message);
57 extern void vm_exit_during_initialization(const char* error, const char* message = nullptr);
58 extern void vm_shutdown_during_initialization(const char* error, const char* message = nullptr);
59
60 extern void vm_exit_during_cds_dumping(const char* error, const char* message = nullptr);
61
62 /**
63 * With the integration of the changes to handle the version string
64 * as defined by JEP-223, most of the code related to handle the version
65 * string prior to JDK 1.6 was removed (partial initialization)
66 */
67 class JDK_Version {
68 friend class VMStructs;
69 friend class Universe;
70 friend void JDK_Version_init();
71 private:
72
73 static JDK_Version _current;
74 static const char* _java_version;
75 static const char* _runtime_name;
76 static const char* _runtime_version;
77 static const char* _runtime_vendor_version;
78 static const char* _runtime_vendor_vm_bug_url;
79
80 int _major;
81 int _minor;
|
42 extern void vm_direct_exit(int code);
43 extern void vm_direct_exit(int code, const char* message);
44
45 // Shutdown the VM but do not exit the process
46 extern void vm_shutdown();
47 // Shutdown the VM and abort the process
48 extern void vm_abort(bool dump_core=true);
49
50 // Trigger any necessary notification of the VM being shutdown
51 extern void notify_vm_shutdown();
52
53 // VM exit if error occurs during initialization of VM
54 extern void vm_exit_during_initialization();
55 extern void vm_exit_during_initialization(Handle exception);
56 extern void vm_exit_during_initialization(Symbol* exception_name, const char* message);
57 extern void vm_exit_during_initialization(const char* error, const char* message = nullptr);
58 extern void vm_shutdown_during_initialization(const char* error, const char* message = nullptr);
59
60 extern void vm_exit_during_cds_dumping(const char* error, const char* message = nullptr);
61
62 extern void perf_jvm_print_on(outputStream* st);
63 extern void perf_deoptimization_print_on(outputStream* st);
64
65 extern void log_vm_init_stats();
66
67 /**
68 * With the integration of the changes to handle the version string
69 * as defined by JEP-223, most of the code related to handle the version
70 * string prior to JDK 1.6 was removed (partial initialization)
71 */
72 class JDK_Version {
73 friend class VMStructs;
74 friend class Universe;
75 friend void JDK_Version_init();
76 private:
77
78 static JDK_Version _current;
79 static const char* _java_version;
80 static const char* _runtime_name;
81 static const char* _runtime_version;
82 static const char* _runtime_vendor_version;
83 static const char* _runtime_vendor_vm_bug_url;
84
85 int _major;
86 int _minor;
|