153 const char* Abstract_VM_Version::vm_release() {
154 return VM_RELEASE;
155 }
156
157 // NOTE: do *not* use stringStream. this function is called by
158 // fatal error handlers. if the crash is in native thread,
159 // stringStream cannot get resource allocated and will SEGV.
160 const char* Abstract_VM_Version::jre_release_version() {
161 return VERSION_STRING;
162 }
163
164 #define OS LINUX_ONLY("linux") \
165 WINDOWS_ONLY("windows") \
166 SOLARIS_ONLY("solaris") \
167 AIX_ONLY("aix") \
168 BSD_ONLY("bsd")
169
170 #ifndef CPU
171 #ifdef ZERO
172 #define CPU ZERO_LIBARCH
173 #else
174 #define CPU IA32_ONLY("x86") \
175 IA64_ONLY("ia64") \
176 AMD64_ONLY("amd64") \
177 PPC64_ONLY("ppc64") \
178 AARCH64_ONLY("aarch64") \
179 SPARC_ONLY("sparc")
180 #endif // ZERO
181 #endif
182
183 const char *Abstract_VM_Version::vm_platform_string() {
184 return OS "-" CPU;
185 }
186
187 const char* Abstract_VM_Version::internal_vm_info_string() {
188 #ifndef HOTSPOT_BUILD_USER
189 #define HOTSPOT_BUILD_USER unknown
190 #endif
191
192 #ifndef HOTSPOT_BUILD_COMPILER
193 #ifdef _MSC_VER
194 #if _MSC_VER == 1600
195 #define HOTSPOT_BUILD_COMPILER "MS VC++ 10.0 (VS2010)"
196 #elif _MSC_VER == 1700
197 #define HOTSPOT_BUILD_COMPILER "MS VC++ 11.0 (VS2012)"
198 #elif _MSC_VER == 1800
199 #define HOTSPOT_BUILD_COMPILER "MS VC++ 12.0 (VS2013)"
200 #else
|
153 const char* Abstract_VM_Version::vm_release() {
154 return VM_RELEASE;
155 }
156
157 // NOTE: do *not* use stringStream. this function is called by
158 // fatal error handlers. if the crash is in native thread,
159 // stringStream cannot get resource allocated and will SEGV.
160 const char* Abstract_VM_Version::jre_release_version() {
161 return VERSION_STRING;
162 }
163
164 #define OS LINUX_ONLY("linux") \
165 WINDOWS_ONLY("windows") \
166 SOLARIS_ONLY("solaris") \
167 AIX_ONLY("aix") \
168 BSD_ONLY("bsd")
169
170 #ifndef CPU
171 #ifdef ZERO
172 #define CPU ZERO_LIBARCH
173 #elif defined(PPC64)
174 #if defined(VM_LITTLE_ENDIAN)
175 #define CPU "ppc64le"
176 #else
177 #define CPU "ppc64"
178 #endif
179 #else
180 #define CPU IA32_ONLY("x86") \
181 IA64_ONLY("ia64") \
182 AMD64_ONLY("amd64") \
183 AARCH64_ONLY("aarch64") \
184 SPARC_ONLY("sparc")
185 #endif //
186 #endif
187
188 const char *Abstract_VM_Version::vm_platform_string() {
189 return OS "-" CPU;
190 }
191
192 const char* Abstract_VM_Version::internal_vm_info_string() {
193 #ifndef HOTSPOT_BUILD_USER
194 #define HOTSPOT_BUILD_USER unknown
195 #endif
196
197 #ifndef HOTSPOT_BUILD_COMPILER
198 #ifdef _MSC_VER
199 #if _MSC_VER == 1600
200 #define HOTSPOT_BUILD_COMPILER "MS VC++ 10.0 (VS2010)"
201 #elif _MSC_VER == 1700
202 #define HOTSPOT_BUILD_COMPILER "MS VC++ 11.0 (VS2012)"
203 #elif _MSC_VER == 1800
204 #define HOTSPOT_BUILD_COMPILER "MS VC++ 12.0 (VS2013)"
205 #else
|