hotspot/src/share/vm/runtime/vm_version.cpp

Print this page




  78   _vm_minor_version = atoi(vm_minor_ver);
  79   _vm_build_number  = atoi(vm_build_num);
  80 
  81   os::free(vm_version);
  82   _initialized = true;
  83 }
  84 
  85 #if defined(_LP64)
  86   #define VMLP "64-Bit "
  87 #else
  88   #define VMLP ""
  89 #endif
  90 
  91 #ifdef KERNEL
  92   #define VMTYPE "Kernel"
  93 #else // KERNEL
  94 #ifdef TIERED
  95   #define VMTYPE "Server"
  96 #else // TIERED
  97 #ifdef ZERO



  98   #define VMTYPE "Zero"

  99 #else // ZERO
 100    #define VMTYPE COMPILER1_PRESENT("Client")   \
 101                   COMPILER2_PRESENT("Server")
 102 #endif // ZERO
 103 #endif // TIERED
 104 #endif // KERNEL
 105 
 106 #ifndef HOTSPOT_VM_DISTRO
 107   #error HOTSPOT_VM_DISTRO must be defined
 108 #endif
 109 #define VMNAME HOTSPOT_VM_DISTRO " " VMLP VMTYPE " VM"
 110 
 111 const char* Abstract_VM_Version::vm_name() {
 112   return VMNAME;
 113 }
 114 
 115 
 116 const char* Abstract_VM_Version::vm_vendor() {
 117 #ifdef VENDOR
 118   return XSTR(VENDOR);




  78   _vm_minor_version = atoi(vm_minor_ver);
  79   _vm_build_number  = atoi(vm_build_num);
  80 
  81   os::free(vm_version);
  82   _initialized = true;
  83 }
  84 
  85 #if defined(_LP64)
  86   #define VMLP "64-Bit "
  87 #else
  88   #define VMLP ""
  89 #endif
  90 
  91 #ifdef KERNEL
  92   #define VMTYPE "Kernel"
  93 #else // KERNEL
  94 #ifdef TIERED
  95   #define VMTYPE "Server"
  96 #else // TIERED
  97 #ifdef ZERO
  98 #ifdef SHARK
  99   #define VMTYPE "Shark"
 100 #else // SHARK
 101   #define VMTYPE "Zero"
 102 #endif // SHARK
 103 #else // ZERO
 104    #define VMTYPE COMPILER1_PRESENT("Client")   \
 105                   COMPILER2_PRESENT("Server")
 106 #endif // ZERO
 107 #endif // TIERED
 108 #endif // KERNEL
 109 
 110 #ifndef HOTSPOT_VM_DISTRO
 111   #error HOTSPOT_VM_DISTRO must be defined
 112 #endif
 113 #define VMNAME HOTSPOT_VM_DISTRO " " VMLP VMTYPE " VM"
 114 
 115 const char* Abstract_VM_Version::vm_name() {
 116   return VMNAME;
 117 }
 118 
 119 
 120 const char* Abstract_VM_Version::vm_vendor() {
 121 #ifdef VENDOR
 122   return XSTR(VENDOR);