changeset 32730:494d1a576a61

8135252: IdealLoopTree::dump_head() prints negative trip count Summary: IdealLoopTree::dump_head() should not cast float to int. Reviewed-by: kvn
author thartmann
date Mon, 14 Sep 2015 10:00:26 +0200
parents 320855c2baef
children 9918bb9fe8b6
files hotspot/src/share/vm/opto/loopnode.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hotspot/src/share/vm/opto/loopnode.cpp	Fri Sep 11 17:02:44 2015 -0700
+++ b/hotspot/src/share/vm/opto/loopnode.cpp	Mon Sep 14 10:00:26 2015 +0200
@@ -1901,7 +1901,7 @@
     if (stride_con > 0) tty->print("+");
     tty->print("%d", stride_con);
 
-    tty->print(" (%d iters) ", (int)cl->profile_trip_cnt());
+    tty->print(" (%0.f iters) ", cl->profile_trip_cnt());
 
     if (cl->is_pre_loop ()) tty->print(" pre" );
     if (cl->is_main_loop()) tty->print(" main");