hotspot/src/share/vm/runtime/os.cpp
changeset 31356 55ee785c49c5
parent 31347 0fec61c9d330
child 31608 b5cb9a07591a
equal deleted inserted replaced
31350:b856c6918480 31356:55ee785c49c5
   830       }
   830       }
   831     }
   831     }
   832   }
   832   }
   833 }
   833 }
   834 
   834 
   835 void os::print_cpu_info(outputStream* st) {
   835 void os::print_cpu_info(outputStream* st, char* buf, size_t buflen) {
   836   // cpu
   836   // cpu
   837   st->print("CPU:");
   837   st->print("CPU:");
   838   st->print("total %d", os::processor_count());
   838   st->print("total %d", os::processor_count());
   839   // It's not safe to query number of active processors after crash
   839   // It's not safe to query number of active processors after crash
   840   // st->print("(active %d)", os::active_processor_count());
   840   // st->print("(active %d)", os::active_processor_count());
   841   st->print(" %s", VM_Version::cpu_features());
   841   st->print(" %s", VM_Version::cpu_features());
   842   st->cr();
   842   st->cr();
   843   pd_print_cpu_info(st);
   843   pd_print_cpu_info(st, buf, buflen);
   844 }
   844 }
   845 
   845 
   846 void os::print_date_and_time(outputStream *st, char* buf, size_t buflen) {
   846 void os::print_date_and_time(outputStream *st, char* buf, size_t buflen) {
   847   const int secs_per_day  = 86400;
   847   const int secs_per_day  = 86400;
   848   const int secs_per_hour = 3600;
   848   const int secs_per_hour = 3600;