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