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

Interpreter(AArch64): Implement -XX:+PrintBytecodeHistogram and -XX:+PrintBytecodePairHistogram options

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 20
    • hotspot
    • b20
    • aarch64
    • generic

      The following two functions are not implemented for interpreter(AArch64). See [1] for details.
        void TemplateInterpreterGenerator::histogram_bytecode(Template* t) { ; }
        void TemplateInterpreterGenerator::histogram_bytecode_pair(Template* t) { ; }

      [1] https://github.com/openjdk/jdk/blob/master/src/hotspot/cpu/aarch64/templateInterpreterGenerator_aarch64.cpp#L1992

      As a result, both -XX:+PrintBytecodeHistogram and -XX:+PrintBytecodePairHistogram options would emit nothing useful.

      Here is the message produced on Linux/AArch64 platform.

      haosun:~/jdk/master-fastdebug$ ./jdk/bin/java --version
      openjdk 20-internal 2023-03-21
      OpenJDK Runtime Environment (fastdebug build 20-internal-adhoc.haosun.master-src)
      OpenJDK 64-Bit Server VM (fastdebug build 20-internal-adhoc.haosun.master-src, mixed mode)


      haosun:~/jdk/master-fastdebug$ ./jdk/bin/java -XX:+PrintBytecodeHistogram --version
      openjdk 20-internal 2023-03-21
      OpenJDK Runtime Environment (fastdebug build 20-internal-adhoc.haosun.master-src)
      OpenJDK 64-Bit Server VM (fastdebug build 20-internal-adhoc.haosun.master-src, mixed mode)

      Histogram of 0 executed bytecodes:

        absolute relative code name
      ----------------------------------------------------------------------
      ----------------------------------------------------------------------
               0 nan% (cutoff = 0.01%)


      haosun:~/jdk/master-fastdebug$ ./jdk/bin/java -XX:+PrintBytecodePairHistogram --version
      openjdk 20-internal 2023-03-21
      OpenJDK Runtime Environment (fastdebug build 20-internal-adhoc.haosun.master-src)
      OpenJDK 64-Bit Server VM (fastdebug build 20-internal-adhoc.haosun.master-src, mixed mode)

      Histogram of 0 executed bytecode pairs:

        absolute relative codes 1st bytecode 2nd bytecode
      ----------------------------------------------------------------------
      ----------------------------------------------------------------------
               0 nan% (cutoff = 0.010%)


            haosun Hao Sun (Inactive)
            haosun Hao Sun (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: