Mercurial > hg > graal-jvmci-8
comparison src/share/vm/utilities/vmError.cpp @ 6181:f8de958e5b2c
7176856: add the JRE name to the error log
Reviewed-by: coleenp, jrose, kvn, twisti
Contributed-by: Krystal Mok <sajia@taobao.com>
author | twisti |
---|---|
date | Mon, 18 Jun 2012 12:29:21 -0700 |
parents | fd09f2d8283e |
children | 24b9c7f4cae6 |
comparison
equal
deleted
inserted
replaced
6180:eeb819cf36e5 | 6181:f8de958e5b2c |
---|---|
448 STEP(50, "(printing Java version string)") | 448 STEP(50, "(printing Java version string)") |
449 | 449 |
450 // VM version | 450 // VM version |
451 st->print_cr("#"); | 451 st->print_cr("#"); |
452 JDK_Version::current().to_string(buf, sizeof(buf)); | 452 JDK_Version::current().to_string(buf, sizeof(buf)); |
453 st->print_cr("# JRE version: %s", buf); | 453 const char* runtime_name = JDK_Version::runtime_name() != NULL ? |
454 JDK_Version::runtime_name() : ""; | |
455 st->print_cr("# JRE version: %s (%s)", runtime_name, buf); | |
454 st->print_cr("# Java VM: %s (%s %s %s %s)", | 456 st->print_cr("# Java VM: %s (%s %s %s %s)", |
455 Abstract_VM_Version::vm_name(), | 457 Abstract_VM_Version::vm_name(), |
456 Abstract_VM_Version::vm_release(), | 458 Abstract_VM_Version::vm_release(), |
457 Abstract_VM_Version::vm_info_string(), | 459 Abstract_VM_Version::vm_info_string(), |
458 Abstract_VM_Version::vm_platform_string(), | 460 Abstract_VM_Version::vm_platform_string(), |