hotspot/src/share/vm/services/diagnosticCommand.cpp
changeset 33979 06bd9fb1f813
parent 33451 0712796e4039
parent 33976 160793725e6f
child 34319 9d6dd3c5ca23
equal deleted inserted replaced
33575:c8f114cd0ebc 33979:06bd9fb1f813
   177 
   177 
   178 void VersionDCmd::execute(DCmdSource source, TRAPS) {
   178 void VersionDCmd::execute(DCmdSource source, TRAPS) {
   179   output()->print_cr("%s version %s", Abstract_VM_Version::vm_name(),
   179   output()->print_cr("%s version %s", Abstract_VM_Version::vm_name(),
   180           Abstract_VM_Version::vm_release());
   180           Abstract_VM_Version::vm_release());
   181   JDK_Version jdk_version = JDK_Version::current();
   181   JDK_Version jdk_version = JDK_Version::current();
   182   if (jdk_version.update_version() > 0) {
   182   if (jdk_version.patch_version() > 0) {
   183     output()->print_cr("JDK %d.%d_%02d", jdk_version.major_version(),
   183     output()->print_cr("JDK %d.%d.%d.%d", jdk_version.major_version(),
   184             jdk_version.minor_version(), jdk_version.update_version());
   184             jdk_version.minor_version(), jdk_version.security_version(),
   185   } else {
   185             jdk_version.patch_version());
   186     output()->print_cr("JDK %d.%d", jdk_version.major_version(),
   186   } else {
   187             jdk_version.minor_version());
   187     output()->print_cr("JDK %d.%d.%d", jdk_version.major_version(),
       
   188             jdk_version.minor_version(), jdk_version.security_version());
   188   }
   189   }
   189 }
   190 }
   190 
   191 
   191 PrintVMFlagsDCmd::PrintVMFlagsDCmd(outputStream* output, bool heap) :
   192 PrintVMFlagsDCmd::PrintVMFlagsDCmd(outputStream* output, bool heap) :
   192                                    DCmdWithParser(output, heap),
   193                                    DCmdWithParser(output, heap),