< prev index next >

src/jdk.vm.ci/share/classes/jdk.vm.ci.common/src/jdk/vm/ci/common/InitTimer.java

Print this page

        

*** 28,39 **** * A facility for timing a step in the runtime initialization sequence. This is independent from all * other JVMCI code so as to not perturb the initialization sequence. It is enabled by setting the * {@code "jvmci.inittimer"} system property to {@code "true"}. */ public final class InitTimer implements AutoCloseable { ! final String name; ! final long start; private InitTimer(String name) { int n = nesting.getAndIncrement(); if (n == 0) { initializingThread = Thread.currentThread(); --- 28,39 ---- * A facility for timing a step in the runtime initialization sequence. This is independent from all * other JVMCI code so as to not perturb the initialization sequence. It is enabled by setting the * {@code "jvmci.inittimer"} system property to {@code "true"}. */ public final class InitTimer implements AutoCloseable { ! private final String name; ! private final long start; private InitTimer(String name) { int n = nesting.getAndIncrement(); if (n == 0) { initializingThread = Thread.currentThread();
*** 74,80 **** public static final String SPACES = " "; /** * Used to assert the invariant that all related initialization happens on the same thread. */ ! public static Thread initializingThread; } --- 74,80 ---- public static final String SPACES = " "; /** * Used to assert the invariant that all related initialization happens on the same thread. */ ! static Thread initializingThread; }
< prev index next >