Class ForkedMain.ShutdownTimeoutThread

java.lang.Object
java.lang.Thread
org.openjdk.jmh.runner.ForkedMain.ShutdownTimeoutThread
All Implemented Interfaces:
Runnable
Enclosing class:
ForkedMain

private static class ForkedMain.ShutdownTimeoutThread extends Thread
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.
  • Field Details

    • TIMEOUT

      private static final int TIMEOUT
    • TIMEOUT_STEP

      private static final int TIMEOUT_STEP
    • LINE_SEPARATOR

      private static final String LINE_SEPARATOR
  • Constructor Details

    • ShutdownTimeoutThread

      public ShutdownTimeoutThread()
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • getMessage

      private String getMessage(long waitMore)