mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8257912: Convert enum iteration to use range-based for loops
Reviewed-by: kbarrett, tschatzl, gziemski
This commit is contained in:
parent
164c55be78
commit
80dac5a87c
10 changed files with 96 additions and 49 deletions
|
@ -5302,8 +5302,7 @@ static void check_methods_for_intrinsics(const InstanceKlass* ik,
|
|||
// The check is potentially expensive, therefore it is available
|
||||
// only in debug builds.
|
||||
|
||||
for (vmIntrinsicsIterator it = vmIntrinsicsRange.begin(); it != vmIntrinsicsRange.end(); ++it) {
|
||||
vmIntrinsicID id = *it;
|
||||
for (vmIntrinsicID id : EnumRange<vmIntrinsicID>{}) {
|
||||
if (vmIntrinsics::_compiledLambdaForm == id) {
|
||||
// The _compiledLamdbdaForm intrinsic is a special marker for bytecode
|
||||
// generated for the JVM from a LambdaForm and therefore no method
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue