Package org.openjdk.jmh.runner
Class ForkedMain.ShutdownTimeoutThread
java.lang.Object
java.lang.Thread
org.openjdk.jmh.runner.ForkedMain.ShutdownTimeoutThread
- All Implemented Interfaces:
Runnable
- Enclosing class:
ForkedMain
Shutdown timeout thread will forcefully exit the VM in two cases:
- stray non-daemon thread prevents the VM from exiting
- all user threads have finished, but we are stuck in some shutdown hook or finalizer
In all other "normal" cases, VM will exit before the timeout expires.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private static final int
private static final int
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Field Details
-
TIMEOUT
private static final int TIMEOUT -
TIMEOUT_STEP
private static final int TIMEOUT_STEP -
LINE_SEPARATOR
-
-
Constructor Details
-
ShutdownTimeoutThread
public ShutdownTimeoutThread()
-
-
Method Details