MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / main

Method main

test/test/nativelock/AllNativeLocks.java:13–27  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

11public class AllNativeLocks {
12
13 public static void main(String[] args) throws InterruptedException {
14 final boolean once = args.length > 0 && args[0].equals("once");
15
16 NativeLock.class.getName();
17 Thread.sleep(500);
18
19 if (once) {
20 runAllLockTypesOnce();
21 } else {
22 while (true) {
23 runAllLockTypesOnce();
24 Thread.sleep(100);
25 }
26 }
27 }
28
29 private static void runAllLockTypesOnce() throws InterruptedException {
30 List<Thread> threads = new ArrayList<>();

Callers

nothing calls this directly

Calls 3

runAllLockTypesOnceMethod · 0.95
equalsMethod · 0.45
sleepMethod · 0.45

Tested by

no test coverage detected