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

Method main

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

Source from the content-addressed store, hash-verified

11public class LoadLibrary {
12
13 public static void main(String[] args) throws Exception {
14 for (int i = 0; i < 20; i++) {
15 Thread.sleep(100);
16 }
17
18 // Late load of libmanagement.so
19 ClassLoadingMXBean bean = ManagementFactory.getClassLoadingMXBean();
20
21 long n = 0;
22 while (n >= 0) {
23 n += bean.getLoadedClassCount();
24 n += bean.getTotalLoadedClassCount();
25 n += bean.getUnloadedClassCount();
26 }
27 }
28}

Callers

nothing calls this directly

Calls 1

sleepMethod · 0.45

Tested by

no test coverage detected