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

Refactor VMError::report STEP macro to improve readability

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 20
    • 20
    • hotspot
    • b26

    Description

      Refactor the STEP macro in VMError::report to improve readability.
      Right now the macro contains multiple statements on one line and the non-conventional control flow is even harder to understand.

      This enhancement aims to do two things:
       1. It splits the macro into multiple lines with indentations which makes the structure of the C++ code generated by the preprocessor clearer.
        2. Separates the internal step logic from the decision logic which decides if a step should be taken with a STEP_IF(step_name_str, condition) macro

      Attachments

        Issue Links

          Activity

            People

              aboldtch Axel Boldt-Christmas
              aboldtch Axel Boldt-Christmas
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: