changeset 7851:520b40caa4d3

8067374: Use %f instead of %g for LogCompilation output Summary: Changed format string from %g to %f. Reviewed-by: kvn
author zmajo
date Thu, 15 Jan 2015 11:30:13 +0100
parents f25dbfaa75c2
children 32ad3e099966 f1340404713a
files src/share/vm/opto/doCall.cpp src/share/vm/opto/parse1.cpp src/share/vm/opto/parse2.cpp
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/opto/doCall.cpp	Wed Jan 14 17:27:00 2015 -0800
+++ b/src/share/vm/opto/doCall.cpp	Thu Jan 15 11:30:13 2015 +0100
@@ -94,7 +94,7 @@
   if (log != NULL) {
     int rid = (receiver_count >= 0)? log->identify(profile.receiver(0)): -1;
     int r2id = (rid != -1 && profile.has_receiver(1))? log->identify(profile.receiver(1)):-1;
-    log->begin_elem("call method='%d' count='%d' prof_factor='%g'",
+    log->begin_elem("call method='%d' count='%d' prof_factor='%f'",
                     log->identify(callee), site_count, prof_factor);
     if (call_does_dispatch)  log->print(" virtual='1'");
     if (allow_inline)     log->print(" inline='1'");
--- a/src/share/vm/opto/parse1.cpp	Wed Jan 14 17:27:00 2015 -0800
+++ b/src/share/vm/opto/parse1.cpp	Thu Jan 15 11:30:13 2015 +0100
@@ -441,7 +441,7 @@
 
   CompileLog* log = C->log();
   if (log != NULL) {
-    log->begin_head("parse method='%d' uses='%g'",
+    log->begin_head("parse method='%d' uses='%f'",
                     log->identify(parse_method), expected_uses);
     if (depth() == 1 && C->is_osr_compilation()) {
       log->print(" osr_bci='%d'", C->entry_bci());
--- a/src/share/vm/opto/parse2.cpp	Wed Jan 14 17:27:00 2015 -0800
+++ b/src/share/vm/opto/parse2.cpp	Thu Jan 15 11:30:13 2015 +0100
@@ -832,7 +832,7 @@
       sprintf(prob_str_buf, "%g", prob);
       prob_str = prob_str_buf;
     }
-    C->log()->elem("branch target_bci='%d' taken='%d' not_taken='%d' cnt='%g' prob='%s'",
+    C->log()->elem("branch target_bci='%d' taken='%d' not_taken='%d' cnt='%f' prob='%s'",
                    iter().get_dest(), taken, not_taken, cnt, prob_str);
   }
   return prob;