Skip to content

Commit

Permalink
Using loop label as lowercase consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaroslav Tulach committed Jun 17, 2024
1 parent 729c52a commit f1373f0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2268,10 +2268,10 @@ void create(String[] expectedServices) {
}

private boolean checkServices(String[] expectedServices) {
LOOP: for (String name : expectedServices) {
loop: for (String name : expectedServices) {
for (Object obj : services) {
if (findType(name, obj.getClass())) {
continue LOOP;
continue loop;
}
}
failInstrumentInitialization(env, String.format("%s declares service %s but doesn't register it", instrumentClassName, name), null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ Object[] enterThreadChanged(boolean enterReverted, boolean pollSafepoint, boolea
throw PolyglotEngineException.illegalState("Context cannot be entered in polyglot thread's beforeEnter or afterLeave notifications.");
}
PolyglotThreadAccessException threadAccessException = null;
LOOP: for (;;) {
loop: for (;;) {
if (threadAccessException != null) {
threadAccessException.rethrow(this);
}
Expand Down Expand Up @@ -868,7 +868,7 @@ Object[] enterThreadChanged(boolean enterReverted, boolean pollSafepoint, boolea
threadInfo = createThreadInfo(current, polyglotThreadFirstEnter);
} catch (PolyglotThreadAccessException ex) {
threadAccessException = ex;
continue LOOP;
continue loop;
}
needsInitialization = true;
}
Expand All @@ -889,7 +889,7 @@ Object[] enterThreadChanged(boolean enterReverted, boolean pollSafepoint, boolea
checkAllThreadAccesses(Thread.currentThread(), false);
} catch (PolyglotThreadAccessException ex) {
threadAccessException = ex;
continue LOOP;
continue loop;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ void ensureCreated(PolyglotLanguage accessingLanguage) {
boolean wasCreated = false;
try {
PolyglotThreadAccessException threadAccessException = null;
LOOP: for (;;) {
loop: for (;;) {
if (threadAccessException != null) {
threadAccessException.rethrow(context);
}
Expand All @@ -648,7 +648,7 @@ void ensureCreated(PolyglotLanguage accessingLanguage) {
checkThreadAccess(localEnv);
} catch (PolyglotThreadAccessException ex) {
threadAccessException = ex;
continue LOOP;
continue loop;
}

// no more errors after this line
Expand Down Expand Up @@ -688,7 +688,7 @@ void ensureCreated(PolyglotLanguage accessingLanguage) {
created = true;
}
}
break LOOP;
break loop;
}
} finally {
if (!wasCreated && eventsEnabled) {
Expand Down

0 comments on commit f1373f0

Please sign in to comment.