< prev index next >
src/java.base/share/classes/sun/launcher/LauncherHelper.java
Print this page
@@ -151,11 +151,11 @@
@SuppressWarnings("fallthrough")
static void showSettings(boolean printToStderr, String optionFlag,
long initialHeapSize, long maxHeapSize, long stackSize) {
initOutput(printToStderr);
- String opts[] = optionFlag.split(":");
+ String[] opts = optionFlag.split(":");
String optStr = (opts.length > 1 && opts[1] != null)
? opts[1].trim()
: "all";
switch (optStr) {
case "vm":
@@ -329,11 +329,11 @@
(c.getCpuPeriod() == -1 ? "" : "us"));
ostream.println(INDENT + "CPU Quota: " + c.getCpuQuota() +
(c.getCpuQuota() == -1 ? "" : "us"));
ostream.println(INDENT + "CPU Shares: " + c.getCpuShares());
- int cpus[] = c.getCpuSetCpus();
+ int[] cpus = c.getCpuSetCpus();
ostream.println(INDENT + "List of Processors, "
+ cpus.length + " total: ");
ostream.print(INDENT);
for (int i = 0; i < cpus.length; i++) {
@@ -353,11 +353,11 @@
}
if (cpus.length > 0) {
ostream.println("");
}
- int mems[] = c.getCpuSetMems();
+ int[] mems = c.getCpuSetMems();
ostream.println(INDENT + "List of Memory Nodes, "
+ mems.length + " total: ");
ostream.print(INDENT);
for (int i = 0; i < mems.length; i++) {
< prev index next >