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

Store debug level in jdk.debug and conditionally print in "java -version"

XMLWordPrintable

    • team

        Bundle names will be modified to align with the existing “debuginfo” and “fastdebug” bundle names. We will introduce a new VM system property “java.vm.debug” which propagates the build’s existing DEBUGLEVEL (“release”, “fastdebug”, “slowdebug”, “optimized”). The “debugness” of a build will be printed out by the launcher in all cases except when it’s “release”, e.g.:

        java.vm.debug = (“foo” != “release”)

        $java -version
        java version "9-ea"
        Java(TM) SE Runtime Environment (foo build 9-ea+88)
        Java HotSpot(TM) 64-Bit Server VM (foo build 9-ea+88, mixed mode)

        java.vm.debug = “release”:

        $java -version
        java version "9-ea"
        Java(TM) SE Runtime Environment (build 9-ea+88)
        Java HotSpot(TM) 64-Bit Server VM (build 9-ea+88, mixed mode)

        It may be necessary to update regression tests to use the system property to determine the debug level.

              amurillo Alejandro Murillo
              iris Iris Clark
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: