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

Remove empty statements in src/hotspot/share/memory/metaspace

XMLWordPrintable

    • b11

      Sonarcloud warns about various macro invocations in src/hotspot/share/memory/metaspace followed by a semicolon. All semicolons in macro invocations need to be removed.

      “Modify the macro definition so that it needs to be followed by a semicolon, or remove this empty statement.”

      For example, in src/hotspot/share/memory/metaspace/chunkManager.cpp:
      if (c == nullptr) {
          // If we end up here, we found no match in the freelists and were unable to get a new
          // root chunk (so we used up all address space, e.g. out of CompressedClassSpace).
          UL2(info, "failed to get chunk (preferred level: " CHKLVL_FORMAT
             ", max level " CHKLVL_FORMAT ".", preferred_level, max_level);
          c = nullptr;
        }

            cnorrbin Casper Norrbin
            szaldana Sonia Zaldana Calles
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: