Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
wangweij committed Jul 22, 2024
1 parent 4ce5bc2 commit 6c5aad3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/jdk/java/lang/Class/ProtectionDomainRace.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@
public class ProtectionDomainRace {
private static volatile Throwable failed = null;
public static void main(String[] args) throws Throwable {
var ac = (PrivilegedAction<? extends Object>) () -> null;
var pa = (PrivilegedAction<? extends Object>) () -> null;
var threads = new Thread[100];
for (int i = 0; i < 100; i++) {
threads[i] = new Thread(() -> {
try {
Subject.doAs(null, ac);
Subject.doAs(null, pa);
} catch (Throwable t) {
failed = t;
}
Expand Down

0 comments on commit 6c5aad3

Please sign in to comment.