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;
}
“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;
}
- links to
-
Commit(master) openjdk/jdk/877fd5a7
-
Review(master) openjdk/jdk/20552