5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 * 23 */ 24 25 # include "incls/_precompiled.incl" 26 # include "incls/_vm_version.cpp.incl" 27 28 const char* Abstract_VM_Version::_s_vm_release = Abstract_VM_Version::vm_release(); 29 const char* Abstract_VM_Version::_s_internal_vm_info_string = Abstract_VM_Version::internal_vm_info_string(); 30 bool Abstract_VM_Version::_supports_cx8 = false; 31 unsigned int Abstract_VM_Version::_logical_processors_per_package = 1U; 32 33 #ifndef HOTSPOT_RELEASE_VERSION 34 #error HOTSPOT_RELEASE_VERSION must be defined 35 #endif 36 #ifndef JRE_RELEASE_VERSION 37 #error JRE_RELEASE_VERSION must be defined 38 #endif 39 #ifndef HOTSPOT_BUILD_TARGET 40 #error HOTSPOT_BUILD_TARGET must be defined 41 #endif 42 43 #ifdef PRODUCT 44 #define VM_RELEASE HOTSPOT_RELEASE_VERSION 45 #else 46 #define VM_RELEASE HOTSPOT_RELEASE_VERSION "-" HOTSPOT_BUILD_TARGET | 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 * 23 */ 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 39 const char* Abstract_VM_Version::_s_vm_release = Abstract_VM_Version::vm_release(); 40 const char* Abstract_VM_Version::_s_internal_vm_info_string = Abstract_VM_Version::internal_vm_info_string(); 41 bool Abstract_VM_Version::_supports_cx8 = false; 42 unsigned int Abstract_VM_Version::_logical_processors_per_package = 1U; 43 44 #ifndef HOTSPOT_RELEASE_VERSION 45 #error HOTSPOT_RELEASE_VERSION must be defined 46 #endif 47 #ifndef JRE_RELEASE_VERSION 48 #error JRE_RELEASE_VERSION must be defined 49 #endif 50 #ifndef HOTSPOT_BUILD_TARGET 51 #error HOTSPOT_BUILD_TARGET must be defined 52 #endif 53 54 #ifdef PRODUCT 55 #define VM_RELEASE HOTSPOT_RELEASE_VERSION 56 #else 57 #define VM_RELEASE HOTSPOT_RELEASE_VERSION "-" HOTSPOT_BUILD_TARGET |