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

Use log_error() instead of log_info() when verification reports a problem

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • hotspot
    • None
    • gc
    • b108

      When the GC code was converted to use the unified logging framework the verification logging was changed to mostly use:

      log_info(gc, vefiy)("Information about verification failure");

      The problem with this is that some verification, in particular in G1, does not report the relevant information in asserts and guarnatee messages. Instead the information is logged ahead of time and at some later point there is something like a "guarantee(false, "Verification failed.");"

      So, to know what went wrong you really need the information that was logged. However when it is logged on log_info(gc, verify) you need to have remembered to set -Xlog:gc* on the command line to get this information.

      A better solution is to log failure information at the error level. That way it is always logged.

            brutisso Bengt Rutisson (Inactive)
            brutisso Bengt Rutisson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: