Fix implicit conversion out of size_t. epsilon-gc-branch
authorshade
Thu, 07 Dec 2017 13:23:41 +0100
branchepsilon-gc-branch
changeset 55976 be6a0c9587da
parent 55975 26d15be1c920
child 55979 669f8c047c9c
Fix implicit conversion out of size_t.
src/hotspot/share/gc/epsilon/epsilonHeap.cpp
--- a/src/hotspot/share/gc/epsilon/epsilonHeap.cpp	Thu Dec 07 13:19:22 2017 +0100
+++ b/src/hotspot/share/gc/epsilon/epsilonHeap.cpp	Thu Dec 07 13:23:41 2017 +0100
@@ -176,5 +176,5 @@
   log.info("Total allocated: " SIZE_FORMAT " KB",
            allocated_kb);
   log.info("Average allocation rate: " SIZE_FORMAT " KB/sec",
-           allocated_kb * NANOSECS_PER_SEC / os::elapsed_counter());
+           (size_t)(allocated_kb * NANOSECS_PER_SEC / os::elapsed_counter()));
 }