176 const char* Abstract_VM_Version::vm_release() {
177 return VM_RELEASE;
178 }
179
180 // NOTE: do *not* use stringStream. this function is called by
181 // fatal error handlers. if the crash is in native thread,
182 // stringStream cannot get resource allocated and will SEGV.
183 const char* Abstract_VM_Version::jre_release_version() {
184 return JRE_RELEASE_VERSION;
185 }
186
187 #define OS LINUX_ONLY("linux") \
188 WINDOWS_ONLY("windows") \
189 SOLARIS_ONLY("solaris") \
190 AIX_ONLY("aix") \
191 BSD_ONLY("bsd")
192
193 #ifndef CPU
194 #ifdef ZERO
195 #define CPU ZERO_LIBARCH
196 #else
197 #define CPU IA32_ONLY("x86") \
198 IA64_ONLY("ia64") \
199 AMD64_ONLY("amd64") \
200 PPC64_ONLY("ppc64") \
201 AARCH64_ONLY("aarch64") \
202 SPARC_ONLY("sparc")
203 #endif // ZERO
204 #endif
205
206 const char *Abstract_VM_Version::vm_platform_string() {
207 return OS "-" CPU;
208 }
209
210 const char* Abstract_VM_Version::internal_vm_info_string() {
211 #ifndef HOTSPOT_BUILD_USER
212 #define HOTSPOT_BUILD_USER unknown
213 #endif
214
215 #ifndef HOTSPOT_BUILD_COMPILER
216 #ifdef _MSC_VER
217 #if _MSC_VER == 1600
218 #define HOTSPOT_BUILD_COMPILER "MS VC++ 10.0 (VS2010)"
219 #elif _MSC_VER == 1700
220 #define HOTSPOT_BUILD_COMPILER "MS VC++ 11.0 (VS2012)"
221 #elif _MSC_VER == 1800
222 #define HOTSPOT_BUILD_COMPILER "MS VC++ 12.0 (VS2013)"
223 #else
|
176 const char* Abstract_VM_Version::vm_release() {
177 return VM_RELEASE;
178 }
179
180 // NOTE: do *not* use stringStream. this function is called by
181 // fatal error handlers. if the crash is in native thread,
182 // stringStream cannot get resource allocated and will SEGV.
183 const char* Abstract_VM_Version::jre_release_version() {
184 return JRE_RELEASE_VERSION;
185 }
186
187 #define OS LINUX_ONLY("linux") \
188 WINDOWS_ONLY("windows") \
189 SOLARIS_ONLY("solaris") \
190 AIX_ONLY("aix") \
191 BSD_ONLY("bsd")
192
193 #ifndef CPU
194 #ifdef ZERO
195 #define CPU ZERO_LIBARCH
196 #elif defined(PPC64)
197 #if defined(VM_LITTLE_ENDIAN)
198 #define CPU "ppc64le"
199 #else
200 #define CPU "ppc64"
201 #endif
202 #else
203 #define CPU IA32_ONLY("x86") \
204 IA64_ONLY("ia64") \
205 AMD64_ONLY("amd64") \
206 AARCH64_ONLY("aarch64") \
207 SPARC_ONLY("sparc")
208 #endif //
209 #endif
210
211 const char *Abstract_VM_Version::vm_platform_string() {
212 return OS "-" CPU;
213 }
214
215 const char* Abstract_VM_Version::internal_vm_info_string() {
216 #ifndef HOTSPOT_BUILD_USER
217 #define HOTSPOT_BUILD_USER unknown
218 #endif
219
220 #ifndef HOTSPOT_BUILD_COMPILER
221 #ifdef _MSC_VER
222 #if _MSC_VER == 1600
223 #define HOTSPOT_BUILD_COMPILER "MS VC++ 10.0 (VS2010)"
224 #elif _MSC_VER == 1700
225 #define HOTSPOT_BUILD_COMPILER "MS VC++ 11.0 (VS2012)"
226 #elif _MSC_VER == 1800
227 #define HOTSPOT_BUILD_COMPILER "MS VC++ 12.0 (VS2013)"
228 #else
|