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

some TraceDeoptimization code not included in PRODUCT build

XMLWordPrintable

    • b05

      After "JDK-8154011: Make TraceDeoptimization a diagnostic flag" some code is not included in the PRODUCT build.

      Remove all the #ifndef PRODUCT guards around TraceDeoptimization checks and make sure to be consistent.

      The DEOPT PACKING messages are controlled by PrintDeoptimizationDetails, but DEOPT UNPACKING is controlled by TraceDeoptimization. Therefore it would sense to make PrintDeoptimizationDetails a diagnostic flag as well.

      See vfameArray.cpp:443
      #ifndef PRODUCT
        if (PrintDeoptimizationDetails) {
          [...]
        } else if (TraceDeoptimization) {
          [...]
        }
      #endif

      Make sure that performance is not impacted by the change.

            tholenstein Tobias Holenstein
            tholenstein Tobias Holenstein
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: