Class ForkedMain

java.lang.Object
org.openjdk.jmh.runner.ForkedMain

class ForkedMain extends Object
Main program entry point for forked JVM instance
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private static class 
    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.
    private static class 
    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 Summary

    Fields
    Modifier and Type
    Field
    Description
    private static Throwable
     
    private static boolean
     
    private static final AtomicBoolean
     
    private static final AtomicReference<BinaryLinkClient>
     
    private static PrintStream
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) static void
    Report our latest status to the host VM, and say goodbye.
    static void
    main(String[] argv)
    Application main entry point

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ForkedMain

      ForkedMain()
  • Method Details

    • main

      public static void main(String[] argv)
      Application main entry point
      Parameters:
      argv - Command line arguments
    • hangup

      static void hangup()
      Report our latest status to the host VM, and say goodbye.