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

Add abort type description to RTM statistic counters

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 14
    • 13
    • hotspot
    • b27
    • generic
    • linux

      Currently, -XX:+PrintPreciseRTMLockingStatistics prints RTM abort and lock statistics per type mentioning only the type number, like:

      - * # rtm locks total (estimated): 0
      - * # rtm lock aborts : 13
      - * # rtm lock aborts 0: 12
      - * # rtm lock aborts 1: 0
      - * # rtm lock aborts 2: 0
      - * # rtm lock aborts 3: 0
      - * # rtm lock aborts 4: 0
      - * # rtm lock aborts 5: 0

      It's a bit difficult to remember all types given the numbers, hence adding descriptions for each type will help a lot to read the statistics without referring to the source code, like:

      + * # rtm locks total (estimated): 10000
      + * # rtm lock aborts (total): 9000
      + * # rtm lock aborts 0 (abort instruction ): 8999
      + * # rtm lock aborts 1 (may succeed on retry): 8999
      + * # rtm lock aborts 2 (conflict ): 0
      + * # rtm lock aborts 3 (buffer overflow ): 1
      + * # rtm lock aborts 4 (debug or trap hit ): 0
      + * # rtm lock aborts 5 (maximum nested depth): 0

            gromero Gustavo Romero
            gromero Gustavo Romero
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: