Class ForkedMain.HangupThread

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

private static class ForkedMain.HangupThread extends Thread
Hangup thread will detach us from the host VM properly, in three cases: - normal shutdown - shutdown with benchmark exception - any System.exit call The need to intercept System.exit calls is the reason to register ourselves as the shutdown hook. Additionally, this thread runs only when all non-daemon threads are stopped, and therefore the stray user threads would be reported by shutdown timeout thread over still alive binary link.
  • Constructor Details

    • HangupThread

      private HangupThread()
  • Method Details

    • run

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