Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8290388

5.7: Clarify the definition of JVM termination

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 20
    • 19
    • specification
    • vm

    Description

      JDK-8290196 significantly clarifies the conditions and timing of exit for a Java program (JLS 12.8). The goal there is to describe the experience of threads in the program -- which, significantly, includes the execution of shutdown hooks -- and *not* the actions of the JVM or the launcher that creates/terminates the JVM. By contrast, 5.7 should focus on the experience of the JVM. The API spec for Runtime.exit leads one to think that the JVM is mandated to start shutdown hooks, so 5.7 should reflect that. And, if the API spec develops tighter language around the JVM's "shutdown sequence", 5.7 should defer to it.

      Attachments

        Issue Links

          Activity

            People

              abuckley Alex Buckley
              abuckley Alex Buckley
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: