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

Remove STEP numbers from error reporting

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • None
    • b120

      VMError::report() is organized as a series of error reporting steps. If a signal occurrs during error reporting, error reporting is invoked again and continued with the follow-up step. This logic is encoded in the STEP macro in vmError.cpp.

      The STEP macro uses a step number, which is maintained by hand. This is a constant source of errors when adding new steps or re-sorting them. Adding a new STEP with the wrong step number sill just quietly exclude this step.

      The step number is unnecessary - the same effect can be achieved by using the __LINE__ macro, which would be a more robust solution.

            stuefe Thomas Stuefe
            stuefe Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: