< prev index next >
src/share/vm/runtime/safepoint.cpp
Print this page
@@ -1266,15 +1266,15 @@
// "/ MICROUNITS " is to convert the unit from nanos to millis.
tty->print("[ "
INT64_FORMAT_W(7) " " INT64_FORMAT_W(7) " "
INT64_FORMAT_W(7) " " INT64_FORMAT_W(7) " "
INT64_FORMAT_W(7) " ] ",
- sstats->_time_to_spin / MICROUNITS,
- sstats->_time_to_wait_to_block / MICROUNITS,
- sstats->_time_to_sync / MICROUNITS,
- sstats->_time_to_do_cleanups / MICROUNITS,
- sstats->_time_to_exec_vmop / MICROUNITS);
+ (int64_t)(sstats->_time_to_spin / MICROUNITS),
+ (int64_t)(sstats->_time_to_wait_to_block / MICROUNITS),
+ (int64_t)(sstats->_time_to_sync / MICROUNITS),
+ (int64_t)(sstats->_time_to_do_cleanups / MICROUNITS),
+ (int64_t)(sstats->_time_to_exec_vmop / MICROUNITS));
if (need_to_track_page_armed_status) {
tty->print(INT32_FORMAT_W(10) " ", sstats->_page_armed);
}
tty->print_cr(INT32_FORMAT_W(15) " ", sstats->_nof_threads_hit_page_trap);
@@ -1318,14 +1318,14 @@
}
tty->print_cr(UINT64_FORMAT_W(5) " VM operations coalesced during safepoint",
_coalesced_vmop_count);
tty->print_cr("Maximum sync time " INT64_FORMAT_W(5) " ms",
- _max_sync_time / MICROUNITS);
+ (int64_t)(_max_sync_time / MICROUNITS));
tty->print_cr("Maximum vm operation time (except for Exit VM operation) "
INT64_FORMAT_W(5) " ms",
- _max_vmop_time / MICROUNITS);
+ (int64_t)(_max_vmop_time / MICROUNITS));
}
// ------------------------------------------------------------------------------------------------
// Non-product code
< prev index next >