equal
deleted
inserted
replaced
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 |