< prev index next >

src/hotspot/share/runtime/vm_version.cpp

Print this page
rev 48062 : 8192833: JEP 322: Time-Based Release Versioning


  31 #include "runtime/vm_version.hpp"
  32 
  33 const char* Abstract_VM_Version::_s_vm_release = Abstract_VM_Version::vm_release();
  34 const char* Abstract_VM_Version::_s_internal_vm_info_string = Abstract_VM_Version::internal_vm_info_string();
  35 
  36 uint64_t Abstract_VM_Version::_features = 0;
  37 const char* Abstract_VM_Version::_features_string = "";
  38 
  39 bool Abstract_VM_Version::_supports_cx8 = false;
  40 bool Abstract_VM_Version::_supports_atomic_getset4 = false;
  41 bool Abstract_VM_Version::_supports_atomic_getset8 = false;
  42 bool Abstract_VM_Version::_supports_atomic_getadd4 = false;
  43 bool Abstract_VM_Version::_supports_atomic_getadd8 = false;
  44 unsigned int Abstract_VM_Version::_logical_processors_per_package = 1U;
  45 unsigned int Abstract_VM_Version::_L1_data_cache_line_size = 0;
  46 
  47 #ifndef HOTSPOT_VERSION_STRING
  48   #error HOTSPOT_VERSION_STRING must be defined
  49 #endif
  50 
  51 #ifndef VERSION_MAJOR
  52   #error VERSION_MAJOR must be defined
  53 #endif
  54 #ifndef VERSION_MINOR
  55   #error VERSION_MINOR must be defined
  56 #endif
  57 #ifndef VERSION_SECURITY
  58   #error VERSION_SECURITY must be defined
  59 #endif
  60 #ifndef VERSION_PATCH
  61   #error VERSION_PATCH must be defined
  62 #endif
  63 #ifndef VERSION_BUILD
  64   #error VERSION_BUILD must be defined
  65 #endif
  66 
  67 #ifndef VERSION_STRING
  68   #error VERSION_STRING must be defined
  69 #endif
  70 
  71 #ifndef DEBUG_LEVEL
  72   #error DEBUG_LEVEL must be defined
  73 #endif
  74 
  75 #define VM_RELEASE HOTSPOT_VERSION_STRING
  76 
  77 // HOTSPOT_VERSION_STRING equals the JDK VERSION_STRING (unless overridden
  78 // in a standalone build).
  79 int Abstract_VM_Version::_vm_major_version = VERSION_MAJOR;
  80 int Abstract_VM_Version::_vm_minor_version = VERSION_MINOR;
  81 int Abstract_VM_Version::_vm_security_version = VERSION_SECURITY;
  82 int Abstract_VM_Version::_vm_patch_version = VERSION_PATCH;
  83 int Abstract_VM_Version::_vm_build_number = VERSION_BUILD;
  84 unsigned int Abstract_VM_Version::_parallel_worker_threads = 0;
  85 bool Abstract_VM_Version::_parallel_worker_threads_initialized = false;
  86 
  87 #if defined(_LP64)
  88   #define VMLP "64-Bit "
  89 #else
  90   #define VMLP ""
  91 #endif
  92 
  93 #ifndef VMTYPE
  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")




  31 #include "runtime/vm_version.hpp"
  32 
  33 const char* Abstract_VM_Version::_s_vm_release = Abstract_VM_Version::vm_release();
  34 const char* Abstract_VM_Version::_s_internal_vm_info_string = Abstract_VM_Version::internal_vm_info_string();
  35 
  36 uint64_t Abstract_VM_Version::_features = 0;
  37 const char* Abstract_VM_Version::_features_string = "";
  38 
  39 bool Abstract_VM_Version::_supports_cx8 = false;
  40 bool Abstract_VM_Version::_supports_atomic_getset4 = false;
  41 bool Abstract_VM_Version::_supports_atomic_getset8 = false;
  42 bool Abstract_VM_Version::_supports_atomic_getadd4 = false;
  43 bool Abstract_VM_Version::_supports_atomic_getadd8 = false;
  44 unsigned int Abstract_VM_Version::_logical_processors_per_package = 1U;
  45 unsigned int Abstract_VM_Version::_L1_data_cache_line_size = 0;
  46 
  47 #ifndef HOTSPOT_VERSION_STRING
  48   #error HOTSPOT_VERSION_STRING must be defined
  49 #endif
  50 
  51 #ifndef VERSION_FEATURE
  52   #error VERSION_FEATURE must be defined
  53 #endif
  54 #ifndef VERSION_INTERIM
  55   #error VERSION_INTERIM must be defined
  56 #endif
  57 #ifndef VERSION_UPDATE
  58   #error VERSION_UPDATE must be defined
  59 #endif
  60 #ifndef VERSION_PATCH
  61   #error VERSION_PATCH must be defined
  62 #endif
  63 #ifndef VERSION_BUILD
  64   #error VERSION_BUILD must be defined
  65 #endif
  66 
  67 #ifndef VERSION_STRING
  68   #error VERSION_STRING must be defined
  69 #endif
  70 
  71 #ifndef DEBUG_LEVEL
  72   #error DEBUG_LEVEL must be defined
  73 #endif
  74 
  75 #define VM_RELEASE HOTSPOT_VERSION_STRING
  76 
  77 // HOTSPOT_VERSION_STRING equals the JDK VERSION_STRING (unless overridden
  78 // in a standalone build).
  79 int Abstract_VM_Version::_vm_major_version = VERSION_FEATURE;
  80 int Abstract_VM_Version::_vm_minor_version = VERSION_INTERIM;
  81 int Abstract_VM_Version::_vm_security_version = VERSION_UPDATE;
  82 int Abstract_VM_Version::_vm_patch_version = VERSION_PATCH;
  83 int Abstract_VM_Version::_vm_build_number = VERSION_BUILD;
  84 unsigned int Abstract_VM_Version::_parallel_worker_threads = 0;
  85 bool Abstract_VM_Version::_parallel_worker_threads_initialized = false;
  86 
  87 #if defined(_LP64)
  88   #define VMLP "64-Bit "
  89 #else
  90   #define VMLP ""
  91 #endif
  92 
  93 #ifndef VMTYPE
  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")


< prev index next >