mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8258075: Use auto variable declarations for enum iteration
Reviewed-by: jrose, ccheung
This commit is contained in:
parent
330ce86123
commit
59f4c4aad5
6 changed files with 16 additions and 16 deletions
|
@ -234,7 +234,7 @@ void Compile::print_intrinsic_statistics() {
|
|||
if (total == 0) total = 1; // avoid div0 in case of no successes
|
||||
#define PRINT_STAT_LINE(name, c, f) \
|
||||
tty->print_cr(" %4d (%4.1f%%) %s (%s)", (int)(c), ((c) * 100.0) / total, name, f);
|
||||
for (vmIntrinsicID id : EnumRange<vmIntrinsicID>{}) {
|
||||
for (auto id : EnumRange<vmIntrinsicID>{}) {
|
||||
int flags = _intrinsic_hist_flags[as_int(id)];
|
||||
juint count = _intrinsic_hist_count[as_int(id)];
|
||||
if ((flags | count) != 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue