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

Add message to verbose output to indicate when JVM was unable to use shared archive (with -Xshare:auto)

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • hotspot
    • b06

      This RFE is filed primarily to improve testability, and also reporting. It was discussed with interested parties in the Runtime team (Coleen, Ioi, Harold and Christian), and agreed upon.

      Background:
      There is a class of use cases where Xshare:auto is used, and sharing is not possible (e.g. OS limitations); in such cases JVM defaults to not sharing and continues on.

      However, there is no testable assertion for such situations, because:
      - when sharing succeeds, the keyword "sharing" is printed in the version info, and tests assert on the presence of this keyword
      - when sharing fails, "sharing" is not printed.

      That is, JVM does not produce output stating the ATTEMPT of using a shared archive; it indicates only whether either sharing was in use, or not, but not whether it was attempted.

      The output will ONLY be VISIBLE when -XX:+Verbose and -XX:+PrintMiscellaneous are in use.

            mseledtsov Mikhailo Seledtsov
            mseledtsov Mikhailo Seledtsov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: