Mercurial > hg > truffle
comparison src/share/vm/prims/methodHandleWalk.cpp @ 4002:a786fdc79c5f
7100165: JSR 292: leftover printing code in methodHandleWalk.cpp
Reviewed-by: kvn, twisti
author | never |
---|---|
date | Thu, 13 Oct 2011 14:08:15 -0700 |
parents | c26de9aef2ed |
children | 04b9a2566eec 8150fa46d2ed |
comparison
equal
deleted
inserted
replaced
4001:5eb9169b1a14 | 4002:a786fdc79c5f |
---|---|
1385 count2 = java_lang_invoke_CountingMethodHandle::vmcount(arg2.object()()); | 1385 count2 = java_lang_invoke_CountingMethodHandle::vmcount(arg2.object()()); |
1386 } | 1386 } |
1387 int total = count1 + count2; | 1387 int total = count1 + count2; |
1388 if (count1 != -1 && count2 != -1 && total != 0) { | 1388 if (count1 != -1 && count2 != -1 && total != 0) { |
1389 // Normalize the collect counts to the invoke_count | 1389 // Normalize the collect counts to the invoke_count |
1390 tty->print("counts %d %d scaled by %d = ", count2, count1, _invoke_count); | |
1391 if (count1 != 0) _not_taken_count = (int)(_invoke_count * count1 / (double)total); | 1390 if (count1 != 0) _not_taken_count = (int)(_invoke_count * count1 / (double)total); |
1392 if (count2 != 0) _taken_count = (int)(_invoke_count * count2 / (double)total); | 1391 if (count2 != 0) _taken_count = (int)(_invoke_count * count2 / (double)total); |
1393 tty->print_cr("%d %d", _taken_count, _not_taken_count); | |
1394 return true; | 1392 return true; |
1395 } | 1393 } |
1396 return false; | 1394 return false; |
1397 } | 1395 } |
1398 | 1396 |