35 bool Abstract_VM_Version::_supports_atomic_getset8 = false; 36 bool Abstract_VM_Version::_supports_atomic_getadd4 = false; 37 bool Abstract_VM_Version::_supports_atomic_getadd8 = false; 38 unsigned int Abstract_VM_Version::_logical_processors_per_package = 1U; 39 unsigned int Abstract_VM_Version::_L1_data_cache_line_size = 0; 40 int Abstract_VM_Version::_reserve_for_allocation_prefetch = 0; 41 42 #ifndef HOTSPOT_VERSION_STRING 43 #error HOTSPOT_VERSION_STRING must be defined 44 #endif 45 46 #ifndef VERSION_MAJOR 47 #error VERSION_MAJOR must be defined 48 #endif 49 #ifndef VERSION_MINOR 50 #error VERSION_MINOR must be defined 51 #endif 52 #ifndef VERSION_SECURITY 53 #error VERSION_SECURITY must be defined 54 #endif 55 #ifndef VERSION_BUILD 56 #error VERSION_BUILD must be defined 57 #endif 58 59 #ifndef VERSION_STRING 60 #error VERSION_STRING must be defined 61 #endif 62 63 // NOTE: Builds within Visual Studio do not define the build target in 64 // HOTSPOT_VERSION_STRING, so it must be done here 65 #if defined(VISUAL_STUDIO_BUILD) && !defined(PRODUCT) 66 #ifndef HOTSPOT_BUILD_TARGET 67 #error HOTSPOT_BUILD_TARGET must be defined 68 #endif 69 #define VM_RELEASE HOTSPOT_VERSION_STRING "-" HOTSPOT_BUILD_TARGET 70 #else 71 #define VM_RELEASE HOTSPOT_VERSION_STRING 72 #endif 73 74 // HOTSPOT_VERSION_STRING equals the JDK VERSION_STRING (unless overridden 75 // in a standalone build). 76 int Abstract_VM_Version::_vm_major_version = VERSION_MAJOR; 77 int Abstract_VM_Version::_vm_minor_version = VERSION_MINOR; 78 int Abstract_VM_Version::_vm_security_version = VERSION_SECURITY; 79 int Abstract_VM_Version::_vm_build_number = VERSION_BUILD; 80 bool Abstract_VM_Version::_initialized = false; 81 unsigned int Abstract_VM_Version::_parallel_worker_threads = 0; 82 bool Abstract_VM_Version::_parallel_worker_threads_initialized = false; 83 84 void Abstract_VM_Version::initialize() { 85 // FIXME: Initialization can probably be removed now. 86 if (_initialized) { 87 return; 88 } 89 90 _initialized = true; 91 } 92 93 #if defined(_LP64) 94 #define VMLP "64-Bit " 95 #else 96 #define VMLP "" 97 #endif 98 99 #ifndef VMTYPE 100 #ifdef TIERED 101 #define VMTYPE "Server" 102 #else // TIERED 103 #ifdef ZERO 104 #ifdef SHARK 105 #define VMTYPE "Shark" 106 #else // SHARK 107 #define VMTYPE "Zero" 108 #endif // SHARK 109 #else // ZERO 110 #define VMTYPE COMPILER1_PRESENT("Client") \ 111 COMPILER2_PRESENT("Server") 112 #endif // ZERO | 35 bool Abstract_VM_Version::_supports_atomic_getset8 = false; 36 bool Abstract_VM_Version::_supports_atomic_getadd4 = false; 37 bool Abstract_VM_Version::_supports_atomic_getadd8 = false; 38 unsigned int Abstract_VM_Version::_logical_processors_per_package = 1U; 39 unsigned int Abstract_VM_Version::_L1_data_cache_line_size = 0; 40 int Abstract_VM_Version::_reserve_for_allocation_prefetch = 0; 41 42 #ifndef HOTSPOT_VERSION_STRING 43 #error HOTSPOT_VERSION_STRING must be defined 44 #endif 45 46 #ifndef VERSION_MAJOR 47 #error VERSION_MAJOR must be defined 48 #endif 49 #ifndef VERSION_MINOR 50 #error VERSION_MINOR must be defined 51 #endif 52 #ifndef VERSION_SECURITY 53 #error VERSION_SECURITY must be defined 54 #endif 55 #ifndef VERSION_PATCH 56 #error VERSION_PATCH must be defined 57 #endif 58 #ifndef VERSION_BUILD 59 #error VERSION_BUILD must be defined 60 #endif 61 62 #ifndef VERSION_STRING 63 #error VERSION_STRING must be defined 64 #endif 65 66 // NOTE: Builds within Visual Studio do not define the build target in 67 // HOTSPOT_VERSION_STRING, so it must be done here 68 #if defined(VISUAL_STUDIO_BUILD) && !defined(PRODUCT) 69 #ifndef HOTSPOT_BUILD_TARGET 70 #error HOTSPOT_BUILD_TARGET must be defined 71 #endif 72 #define VM_RELEASE HOTSPOT_VERSION_STRING "-" HOTSPOT_BUILD_TARGET 73 #else 74 #define VM_RELEASE HOTSPOT_VERSION_STRING 75 #endif 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 #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 |