< prev index next >

src/hotspot/share/runtime/vm_version.cpp

Print this page




 250     #elif defined(__GNUC__)
 251         #define HOTSPOT_BUILD_COMPILER "gcc " __VERSION__
 252     #elif defined(__IBMCPP__)
 253         #define HOTSPOT_BUILD_COMPILER "xlC " XSTR(__IBMCPP__)
 254 
 255     #else
 256       #define HOTSPOT_BUILD_COMPILER "unknown compiler"
 257     #endif
 258   #endif
 259 
 260   #ifndef FLOAT_ARCH
 261     #if defined(__SOFTFP__)
 262       #define FLOAT_ARCH_STR "-sflt"
 263     #else
 264       #define FLOAT_ARCH_STR ""
 265     #endif
 266   #else
 267     #define FLOAT_ARCH_STR XSTR(FLOAT_ARCH)
 268   #endif
 269 






 270   #define INTERNAL_VERSION_SUFFIX VM_RELEASE ")" \
 271          " for " OS "-" CPU FLOAT_ARCH_STR \
 272          " JRE (" VERSION_STRING "), built on " __DATE__ " " __TIME__ \
 273          " by " XSTR(HOTSPOT_BUILD_USER) " with " HOTSPOT_BUILD_COMPILER
 274 
 275   return strcmp(DEBUG_LEVEL, "release") == 0
 276       ? VMNAME " (" INTERNAL_VERSION_SUFFIX
 277       : VMNAME " (" DEBUG_LEVEL " " INTERNAL_VERSION_SUFFIX;
 278 }
 279 
 280 const char *Abstract_VM_Version::vm_build_user() {
 281   return HOTSPOT_BUILD_USER;
 282 }
 283 
 284 const char *Abstract_VM_Version::jdk_debug_level() {
 285   return DEBUG_LEVEL;
 286 }
 287 
 288 const char *Abstract_VM_Version::printable_jdk_debug_level() {
 289   // Debug level is not printed for "release" builds
 290   return strcmp(DEBUG_LEVEL, "release") == 0 ? "" : DEBUG_LEVEL " ";
 291 }




 250     #elif defined(__GNUC__)
 251         #define HOTSPOT_BUILD_COMPILER "gcc " __VERSION__
 252     #elif defined(__IBMCPP__)
 253         #define HOTSPOT_BUILD_COMPILER "xlC " XSTR(__IBMCPP__)
 254 
 255     #else
 256       #define HOTSPOT_BUILD_COMPILER "unknown compiler"
 257     #endif
 258   #endif
 259 
 260   #ifndef FLOAT_ARCH
 261     #if defined(__SOFTFP__)
 262       #define FLOAT_ARCH_STR "-sflt"
 263     #else
 264       #define FLOAT_ARCH_STR ""
 265     #endif
 266   #else
 267     #define FLOAT_ARCH_STR XSTR(FLOAT_ARCH)
 268   #endif
 269 
 270   #ifdef HOTSPOT_LIBC
 271     #define LIBC_STR "-" HOTSPOT_LIBC
 272   #else
 273     #define LIBC_STR ""
 274   #endif
 275 
 276   #define INTERNAL_VERSION_SUFFIX VM_RELEASE ")" \
 277          " for " OS "-" CPU FLOAT_ARCH_STR LIBC_STR \
 278          " JRE (" VERSION_STRING "), built on " __DATE__ " " __TIME__ \
 279          " by " XSTR(HOTSPOT_BUILD_USER) " with " HOTSPOT_BUILD_COMPILER
 280 
 281   return strcmp(DEBUG_LEVEL, "release") == 0
 282       ? VMNAME " (" INTERNAL_VERSION_SUFFIX
 283       : VMNAME " (" DEBUG_LEVEL " " INTERNAL_VERSION_SUFFIX;
 284 }
 285 
 286 const char *Abstract_VM_Version::vm_build_user() {
 287   return HOTSPOT_BUILD_USER;
 288 }
 289 
 290 const char *Abstract_VM_Version::jdk_debug_level() {
 291   return DEBUG_LEVEL;
 292 }
 293 
 294 const char *Abstract_VM_Version::printable_jdk_debug_level() {
 295   // Debug level is not printed for "release" builds
 296   return strcmp(DEBUG_LEVEL, "release") == 0 ? "" : DEBUG_LEVEL " ";
 297 }


< prev index next >