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

Guard printing code of Compile::print_method in PRODUCT

XMLWordPrintable

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

      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`

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

              Created:
              Updated:
              Resolved: