src/share/vm/runtime/vm_version.cpp

Print this page
rev 4132 : [mq]: patch.txt


 163 // NOTE: do *not* use stringStream. this function is called by
 164 //       fatal error handler. if the crash is in native thread,
 165 //       stringStream cannot get resource allocated and will SEGV.
 166 const char* Abstract_VM_Version::vm_release() {
 167   return VM_RELEASE;
 168 }
 169 
 170 // NOTE: do *not* use stringStream. this function is called by
 171 //       fatal error handlers. if the crash is in native thread,
 172 //       stringStream cannot get resource allocated and will SEGV.
 173 const char* Abstract_VM_Version::jre_release_version() {
 174   return JRE_RELEASE_VERSION;
 175 }
 176 
 177 #define OS       LINUX_ONLY("linux")             \
 178                  WINDOWS_ONLY("windows")         \
 179                  SOLARIS_ONLY("solaris")         \
 180                  BSD_ONLY("bsd")
 181 
 182 #ifdef ZERO
 183 #define CPU      ZERO_LIBARCH
 184 #else
 185 #define CPU      IA32_ONLY("x86")                \
 186                  IA64_ONLY("ia64")               \
 187                  AMD64_ONLY("amd64")             \
 188                  ARM_ONLY("arm")                 \
 189                  PPC_ONLY("ppc")                 \
 190                  SPARC_ONLY("sparc")
 191 #endif // ZERO
 192 
 193 const char *Abstract_VM_Version::vm_platform_string() {
 194   return OS "-" CPU;
 195 }
 196 
 197 const char* Abstract_VM_Version::internal_vm_info_string() {
 198   #ifndef HOTSPOT_BUILD_USER
 199     #define HOTSPOT_BUILD_USER unknown
 200   #endif
 201 
 202   #ifndef HOTSPOT_BUILD_COMPILER
 203     #ifdef _MSC_VER




 163 // NOTE: do *not* use stringStream. this function is called by
 164 //       fatal error handler. if the crash is in native thread,
 165 //       stringStream cannot get resource allocated and will SEGV.
 166 const char* Abstract_VM_Version::vm_release() {
 167   return VM_RELEASE;
 168 }
 169 
 170 // NOTE: do *not* use stringStream. this function is called by
 171 //       fatal error handlers. if the crash is in native thread,
 172 //       stringStream cannot get resource allocated and will SEGV.
 173 const char* Abstract_VM_Version::jre_release_version() {
 174   return JRE_RELEASE_VERSION;
 175 }
 176 
 177 #define OS       LINUX_ONLY("linux")             \
 178                  WINDOWS_ONLY("windows")         \
 179                  SOLARIS_ONLY("solaris")         \
 180                  BSD_ONLY("bsd")
 181 
 182 #ifdef ZERO
 183 #define CPU      OPENJDK_TARGET_CPU_LEGACY_LIB
 184 #else
 185 #define CPU      IA32_ONLY("x86")                \
 186                  IA64_ONLY("ia64")               \
 187                  AMD64_ONLY("amd64")             \
 188                  ARM_ONLY("arm")                 \
 189                  PPC_ONLY("ppc")                 \
 190                  SPARC_ONLY("sparc")
 191 #endif // ZERO
 192 
 193 const char *Abstract_VM_Version::vm_platform_string() {
 194   return OS "-" CPU;
 195 }
 196 
 197 const char* Abstract_VM_Version::internal_vm_info_string() {
 198   #ifndef HOTSPOT_BUILD_USER
 199     #define HOTSPOT_BUILD_USER unknown
 200   #endif
 201 
 202   #ifndef HOTSPOT_BUILD_COMPILER
 203     #ifdef _MSC_VER