Skip to content

Commit

Permalink
8315505: CompileTask timestamp printed can overflow
Browse files Browse the repository at this point in the history
Reviewed-by: thartmann
  • Loading branch information
tstuefe committed Oct 10, 2023
1 parent fcff222 commit ad7a8e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hotspot/share/compiler/compileTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,13 @@ void CompileTask::print_impl(outputStream* st, Method* method, int compile_id, i
jlong time_queued, jlong time_started) {
if (!short_form) {
// Print current time
st->print("%7d ", (int)tty->time_stamp().milliseconds());
st->print(UINT64_FORMAT " ", (uint64_t) tty->time_stamp().milliseconds());
if (Verbose && time_queued != 0) {
// Print time in queue and time being processed by compiler thread
jlong now = os::elapsed_counter();
st->print("%d ", (int)TimeHelper::counter_to_millis(now-time_queued));
st->print("%.0f ", TimeHelper::counter_to_millis(now-time_queued));
if (time_started != 0) {
st->print("%d ", (int)TimeHelper::counter_to_millis(now-time_started));
st->print("%.0f ", TimeHelper::counter_to_millis(now-time_started));
}
}
}
Expand Down

1 comment on commit ad7a8e8

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.