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

Guard printing code of Compile::print_method in PRODUCT

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P5
    • 19
    • 19
    • hotspot
    • b07

    Description

      In `Compile::print_method(CompilerPhaseType cpt, Node* n, int level)` the code
      ```
      ResourceMark rm;
        stringStream ss;
        ss.print_raw(CompilerPhaseTypeHelper::to_string(cpt));
        if (n != NULL) {
          ss.print(": %d %s ", n->_idx, NodeClassNames[n->Opcode()]);
        } else {
          ss.print_raw(": NULL");
        }
      ```
      needs to be guarded by a `#ifndef PRODUCT` since the usage of the string is also guarded in `Compile::print_method_impl`

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: