< prev index next >

src/share/vm/runtime/java.hpp

Print this page




  28 #include "runtime/os.hpp"
  29 
  30 // Execute code before all handles are released and thread is killed; prologue to vm_exit
  31 extern void before_exit(JavaThread * thread);
  32 
  33 // Forced VM exit (i.e, internal error or JVM_Exit)
  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(Handle exception);
  49 extern void vm_exit_during_initialization(Symbol* exception_name, const char* message);
  50 extern void vm_exit_during_initialization(const char* error, const char* message = NULL);
  51 extern void vm_shutdown_during_initialization(const char* error, const char* message = NULL);
  52 
  53 /**
  54  * With the integration of the changes to handle the version string
  55  * as defined by JEP-223, most of the code related to handle the version
  56  * string prior to JDK 1.6 was removed (partial initialization)
  57  */
  58 class JDK_Version VALUE_OBJ_CLASS_SPEC {
  59   friend class VMStructs;
  60   friend class Universe;
  61   friend void JDK_Version_init();
  62  private:
  63 
  64   static JDK_Version _current;
  65   static const char* _runtime_name;
  66   static const char* _runtime_version;
  67 




  28 #include "runtime/os.hpp"
  29 
  30 // Execute code before all handles are released and thread is killed; prologue to vm_exit
  31 extern void before_exit(JavaThread * thread);
  32 
  33 // Forced VM exit (i.e, internal error or JVM_Exit)
  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 VALUE_OBJ_CLASS_SPEC {
  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 


< prev index next >