mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
8313882: Fix -Wconversion warnings in runtime code
Reviewed-by: pchilanomate, dlong, dholmes
This commit is contained in:
parent
0cb9ab04f4
commit
f47767ffef
26 changed files with 129 additions and 135 deletions
|
@ -450,10 +450,10 @@ void Thread::print_on(outputStream* st, bool print_extended_info) const {
|
|||
}
|
||||
|
||||
st->print("cpu=%.2fms ",
|
||||
os::thread_cpu_time(const_cast<Thread*>(this), true) / 1000000.0
|
||||
(double)os::thread_cpu_time(const_cast<Thread*>(this), true) / 1000000.0
|
||||
);
|
||||
st->print("elapsed=%.2fs ",
|
||||
_statistical_info.getElapsedTime() / 1000.0
|
||||
(double)_statistical_info.getElapsedTime() / 1000.0
|
||||
);
|
||||
if (is_Java_thread() && (PrintExtendedThreadInfo || print_extended_info)) {
|
||||
size_t allocated_bytes = (size_t) const_cast<Thread*>(this)->cooked_allocated_bytes();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue