275 */ |
275 */ |
276 void outputStream::print_data(void* data, size_t len, bool with_ascii) { |
276 void outputStream::print_data(void* data, size_t len, bool with_ascii) { |
277 size_t limit = (len + 16) / 16 * 16; |
277 size_t limit = (len + 16) / 16 * 16; |
278 for (size_t i = 0; i < limit; ++i) { |
278 for (size_t i = 0; i < limit; ++i) { |
279 if (i % 16 == 0) { |
279 if (i % 16 == 0) { |
280 indent().print(SIZE_FORMAT_HEX_W(07)":", i); |
280 indent().print(SIZE_FORMAT_HEX_W(07) ":", i); |
281 } |
281 } |
282 if (i % 2 == 0) { |
282 if (i % 2 == 0) { |
283 print(" "); |
283 print(" "); |
284 } |
284 } |
285 if (i < len) { |
285 if (i < len) { |
943 // (For now, don't bother to issue a DTD for this private format.) |
943 // (For now, don't bother to issue a DTD for this private format.) |
944 jlong time_ms = os::javaTimeMillis() - tty->time_stamp().milliseconds(); |
944 jlong time_ms = os::javaTimeMillis() - tty->time_stamp().milliseconds(); |
945 // %%% Should be: jlong time_ms = os::start_time_milliseconds(), if |
945 // %%% Should be: jlong time_ms = os::start_time_milliseconds(), if |
946 // we ever get round to introduce that method on the os class |
946 // we ever get round to introduce that method on the os class |
947 xs->head("hotspot_log version='%d %d'" |
947 xs->head("hotspot_log version='%d %d'" |
948 " process='%d' time_ms='"INT64_FORMAT"'", |
948 " process='%d' time_ms='" INT64_FORMAT "'", |
949 LOG_MAJOR_VERSION, LOG_MINOR_VERSION, |
949 LOG_MAJOR_VERSION, LOG_MINOR_VERSION, |
950 os::current_process_id(), (int64_t)time_ms); |
950 os::current_process_id(), (int64_t)time_ms); |
951 // Write VM version header immediately. |
951 // Write VM version header immediately. |
952 xs->head("vm_version"); |
952 xs->head("vm_version"); |
953 xs->head("name"); xs->text("%s", VM_Version::vm_name()); xs->cr(); |
953 xs->head("name"); xs->text("%s", VM_Version::vm_name()); xs->cr(); |