< prev index next >

src/share/vm/runtime/vm_version.cpp

Print this page




  24 
  25 #include "precompiled.hpp"
  26 #include "memory/universe.hpp"
  27 #include "oops/oop.inline.hpp"
  28 #include "runtime/arguments.hpp"
  29 #ifdef TARGET_ARCH_x86
  30 # include "vm_version_x86.hpp"
  31 #endif
  32 #ifdef TARGET_ARCH_sparc
  33 # include "vm_version_sparc.hpp"
  34 #endif
  35 #ifdef TARGET_ARCH_zero
  36 # include "vm_version_zero.hpp"
  37 #endif
  38 #ifdef TARGET_ARCH_arm
  39 # include "vm_version_arm.hpp"
  40 #endif
  41 #ifdef TARGET_ARCH_ppc
  42 # include "vm_version_ppc.hpp"
  43 #endif



  44 
  45 const char* Abstract_VM_Version::_s_vm_release = Abstract_VM_Version::vm_release();
  46 const char* Abstract_VM_Version::_s_internal_vm_info_string = Abstract_VM_Version::internal_vm_info_string();
  47 bool Abstract_VM_Version::_supports_cx8 = false;
  48 bool Abstract_VM_Version::_supports_atomic_getset4 = false;
  49 bool Abstract_VM_Version::_supports_atomic_getset8 = false;
  50 bool Abstract_VM_Version::_supports_atomic_getadd4 = false;
  51 bool Abstract_VM_Version::_supports_atomic_getadd8 = false;
  52 unsigned int Abstract_VM_Version::_logical_processors_per_package = 1U;
  53 unsigned int Abstract_VM_Version::_L1_data_cache_line_size = 0;
  54 int Abstract_VM_Version::_reserve_for_allocation_prefetch = 0;
  55 
  56 #ifndef HOTSPOT_RELEASE_VERSION
  57   #error HOTSPOT_RELEASE_VERSION must be defined
  58 #endif
  59 #ifndef JRE_RELEASE_VERSION
  60   #error JRE_RELEASE_VERSION must be defined
  61 #endif
  62 #ifndef HOTSPOT_BUILD_TARGET
  63   #error HOTSPOT_BUILD_TARGET must be defined


 177 
 178 #define OS       LINUX_ONLY("linux")             \
 179                  WINDOWS_ONLY("windows")         \
 180                  SOLARIS_ONLY("solaris")         \
 181                  AIX_ONLY("aix")                 \
 182                  BSD_ONLY("bsd")
 183 
 184 #ifndef CPU
 185 #ifdef ZERO
 186 #define CPU      ZERO_LIBARCH
 187 #elif defined(PPC64)
 188 #if defined(VM_LITTLE_ENDIAN)
 189 #define CPU      "ppc64le"
 190 #else
 191 #define CPU      "ppc64"
 192 #endif
 193 #else
 194 #define CPU      IA32_ONLY("x86")                \
 195                  IA64_ONLY("ia64")               \
 196                  AMD64_ONLY("amd64")             \


 197                  SPARC_ONLY("sparc")
 198 #endif // ZERO
 199 #endif
 200 
 201 const char *Abstract_VM_Version::vm_platform_string() {
 202   return OS "-" CPU;
 203 }
 204 
 205 const char* Abstract_VM_Version::internal_vm_info_string() {
 206   #ifndef HOTSPOT_BUILD_USER
 207     #define HOTSPOT_BUILD_USER unknown
 208   #endif
 209 
 210   #ifndef HOTSPOT_BUILD_COMPILER
 211     #ifdef _MSC_VER
 212       #if   _MSC_VER == 1100
 213         #define HOTSPOT_BUILD_COMPILER "MS VC++ 5.0"
 214       #elif _MSC_VER == 1200
 215         #define HOTSPOT_BUILD_COMPILER "MS VC++ 6.0"
 216       #elif _MSC_VER == 1310




  24 
  25 #include "precompiled.hpp"
  26 #include "memory/universe.hpp"
  27 #include "oops/oop.inline.hpp"
  28 #include "runtime/arguments.hpp"
  29 #ifdef TARGET_ARCH_x86
  30 # include "vm_version_x86.hpp"
  31 #endif
  32 #ifdef TARGET_ARCH_sparc
  33 # include "vm_version_sparc.hpp"
  34 #endif
  35 #ifdef TARGET_ARCH_zero
  36 # include "vm_version_zero.hpp"
  37 #endif
  38 #ifdef TARGET_ARCH_arm
  39 # include "vm_version_arm.hpp"
  40 #endif
  41 #ifdef TARGET_ARCH_ppc
  42 # include "vm_version_ppc.hpp"
  43 #endif
  44 #ifdef TARGET_ARCH_aarch32
  45 # include "vm_version_aarch32.hpp"
  46 #endif
  47 
  48 const char* Abstract_VM_Version::_s_vm_release = Abstract_VM_Version::vm_release();
  49 const char* Abstract_VM_Version::_s_internal_vm_info_string = Abstract_VM_Version::internal_vm_info_string();
  50 bool Abstract_VM_Version::_supports_cx8 = false;
  51 bool Abstract_VM_Version::_supports_atomic_getset4 = false;
  52 bool Abstract_VM_Version::_supports_atomic_getset8 = false;
  53 bool Abstract_VM_Version::_supports_atomic_getadd4 = false;
  54 bool Abstract_VM_Version::_supports_atomic_getadd8 = false;
  55 unsigned int Abstract_VM_Version::_logical_processors_per_package = 1U;
  56 unsigned int Abstract_VM_Version::_L1_data_cache_line_size = 0;
  57 int Abstract_VM_Version::_reserve_for_allocation_prefetch = 0;
  58 
  59 #ifndef HOTSPOT_RELEASE_VERSION
  60   #error HOTSPOT_RELEASE_VERSION must be defined
  61 #endif
  62 #ifndef JRE_RELEASE_VERSION
  63   #error JRE_RELEASE_VERSION must be defined
  64 #endif
  65 #ifndef HOTSPOT_BUILD_TARGET
  66   #error HOTSPOT_BUILD_TARGET must be defined


 180 
 181 #define OS       LINUX_ONLY("linux")             \
 182                  WINDOWS_ONLY("windows")         \
 183                  SOLARIS_ONLY("solaris")         \
 184                  AIX_ONLY("aix")                 \
 185                  BSD_ONLY("bsd")
 186 
 187 #ifndef CPU
 188 #ifdef ZERO
 189 #define CPU      ZERO_LIBARCH
 190 #elif defined(PPC64)
 191 #if defined(VM_LITTLE_ENDIAN)
 192 #define CPU      "ppc64le"
 193 #else
 194 #define CPU      "ppc64"
 195 #endif
 196 #else
 197 #define CPU      IA32_ONLY("x86")                \
 198                  IA64_ONLY("ia64")               \
 199                  AMD64_ONLY("amd64")             \
 200                  PPC64_ONLY("ppc64")             \
 201                  AARCH32_ONLY("aarch32")         \
 202                  SPARC_ONLY("sparc")
 203 #endif // ZERO
 204 #endif
 205 
 206 const char *Abstract_VM_Version::vm_platform_string() {
 207   return OS "-" CPU;
 208 }
 209 
 210 const char* Abstract_VM_Version::internal_vm_info_string() {
 211   #ifndef HOTSPOT_BUILD_USER
 212     #define HOTSPOT_BUILD_USER unknown
 213   #endif
 214 
 215   #ifndef HOTSPOT_BUILD_COMPILER
 216     #ifdef _MSC_VER
 217       #if   _MSC_VER == 1100
 218         #define HOTSPOT_BUILD_COMPILER "MS VC++ 5.0"
 219       #elif _MSC_VER == 1200
 220         #define HOTSPOT_BUILD_COMPILER "MS VC++ 6.0"
 221       #elif _MSC_VER == 1310


< prev index next >