19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
20 * or visit www.oracle.com if you need additional information or have any |
20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. |
21 * questions. |
22 * |
22 * |
23 */ |
23 */ |
|
24 |
|
25 /* |
|
26 * This file has been modified by Loongson Technology in 2018. These |
|
27 * modifications are Copyright (c) 2018 Loongson Technology, and are made |
|
28 * available on the same license terms set forth above. |
|
29 * |
|
30 */ |
24 |
31 |
25 #include <fcntl.h> |
32 #include <fcntl.h> |
26 #include "precompiled.hpp" |
33 #include "precompiled.hpp" |
27 #include "compiler/compileBroker.hpp" |
34 #include "compiler/compileBroker.hpp" |
28 #include "gc_interface/collectedHeap.hpp" |
35 #include "gc_interface/collectedHeap.hpp" |
488 JDK_Version::current().to_string(buf, sizeof(buf)); |
495 JDK_Version::current().to_string(buf, sizeof(buf)); |
489 const char* runtime_name = JDK_Version::runtime_name() != NULL ? |
496 const char* runtime_name = JDK_Version::runtime_name() != NULL ? |
490 JDK_Version::runtime_name() : ""; |
497 JDK_Version::runtime_name() : ""; |
491 const char* runtime_version = JDK_Version::runtime_version() != NULL ? |
498 const char* runtime_version = JDK_Version::runtime_version() != NULL ? |
492 JDK_Version::runtime_version() : ""; |
499 JDK_Version::runtime_version() : ""; |
493 st->print_cr("# JRE version: %s (%s) (build %s)", runtime_name, buf, runtime_version); |
500 #ifdef LOONGSON_RUNTIME_NAME |
|
501 const char* loongson_runtime_name_and_version = LOONGSON_RUNTIME_NAME; |
|
502 #else |
|
503 const char* loongson_runtime_name_and_version = ""; |
|
504 #endif |
|
505 st->print_cr("# JRE version: %s (%s) (build %s) (%s)", runtime_name, buf, runtime_version, loongson_runtime_name_and_version); |
494 st->print_cr("# Java VM: %s (%s %s %s %s)", |
506 st->print_cr("# Java VM: %s (%s %s %s %s)", |
495 Abstract_VM_Version::vm_name(), |
507 Abstract_VM_Version::vm_name(), |
496 Abstract_VM_Version::vm_release(), |
508 Abstract_VM_Version::vm_release(), |
497 Abstract_VM_Version::vm_info_string(), |
509 Abstract_VM_Version::vm_info_string(), |
498 Abstract_VM_Version::vm_platform_string(), |
510 Abstract_VM_Version::vm_platform_string(), |