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

Add warning message when fail to load hsdis libraries

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 19
    • hotspot
    • b05

      This enhancement was reported by Yuta Sato ( @yuu1127 ) on GitHub PR.


      When failing to load hsdis(Hot Spot Disassembler) library (because there is no library or hsdis.so is old and so on),
      there is no warning message (only can see info level messages if put -Xlog:os=info).
      This should show a warning message to tell the user that you failed to load libraries for hsdis.
      So I put a warning message to notify this.

      e.g.
      /build/macosx-aarch64-server-fastdebug/jdk/bin/java -XX:+UnlockDiagnosticVMOptions -XX:+PrintAssembly -version

      ->

      ============================= C1-compiled nmethod ==============================
      ----------------------------------- Assembly -----------------------------------

      [0.081s][warning][os] Try to load hsdis library failed

            ysuenaga Yasumasa Suenaga
            ysuenaga Yasumasa Suenaga
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: