< prev index next >

src/share/vm/runtime/vm_version.cpp

Print this page




  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 #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;


 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




  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_aarch64
  33 # include "vm_version_aarch64.hpp"
  34 #endif
  35 #ifdef TARGET_ARCH_sparc
  36 # include "vm_version_sparc.hpp"
  37 #endif
  38 #ifdef TARGET_ARCH_zero
  39 # include "vm_version_zero.hpp"
  40 #endif
  41 #ifdef TARGET_ARCH_arm
  42 # include "vm_version_arm.hpp"
  43 #endif
  44 #ifdef TARGET_ARCH_ppc
  45 # include "vm_version_ppc.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;


 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                  AARCH64_ONLY("aarch64")         \
 201                  SPARC_ONLY("sparc")
 202 #endif // ZERO
 203 #endif
 204 
 205 const char *Abstract_VM_Version::vm_platform_string() {
 206   return OS "-" CPU;
 207 }
 208 
 209 const char* Abstract_VM_Version::internal_vm_info_string() {
 210   #ifndef HOTSPOT_BUILD_USER
 211     #define HOTSPOT_BUILD_USER unknown
 212   #endif
 213 
 214   #ifndef HOTSPOT_BUILD_COMPILER
 215     #ifdef _MSC_VER
 216       #if   _MSC_VER == 1100
 217         #define HOTSPOT_BUILD_COMPILER "MS VC++ 5.0"
 218       #elif _MSC_VER == 1200
 219         #define HOTSPOT_BUILD_COMPILER "MS VC++ 6.0"
 220       #elif _MSC_VER == 1310


< prev index next >