1 /*
2 * Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
101 } else if ("-numberOfGCsBeforeCheck".equalsIgnoreCase(args[i])) {
102 c.numberOfGCsBeforeCheck = Integer.valueOf(args[i + 1].toUpperCase());
103 } else if ("-keep".equalsIgnoreCase(args[i])) {
104 c.whatToKeep = WhatToKeep.valueOf(args[i + 1].toUpperCase());
105 } else if ("-classloadingMethod".equalsIgnoreCase(args[i])) {
106 c.classloadingMethod = ClassloadingMethod.valueOf(args[ i + 1].toUpperCase());
107 } else if ("-keepRefMode".equalsIgnoreCase(args[i])) {
108 c.keepRefMode = KeepRefMode.valueOf(args[i + 1]);
109 } else if ("-humongousClass".equalsIgnoreCase(args[i])) {
110 c.humongousClass = "true".equals(args[i + 1]);
111 } else if ("-compilationLevel".equalsIgnoreCase(args[i])) {
112 c.compilationLevel = Integer.valueOf(args[i + 1]);
113 } else if ("-compilationNumber".equalsIgnoreCase(args[i])) {
114 c.compilationNumber = Integer.valueOf(args[i + 1]);
115 } else if ("-redefineClasses".equalsIgnoreCase(args[i])) {
116 c.redefineClasses = "true".equals(args[i + 1]);
117 } else if ("-inMemoryCompilation".equalsIgnoreCase(args[i])) {
118 c.inMemoryCompilation = "true".equals(args[i + 1]);
119 } else if ("-numberOfChecksLimit".equalsIgnoreCase(args[i])) {
120 c.numberOfChecksLimit = Integer.parseInt(args[i + 1]);
121 } else if (args[i].startsWith("-") && ! "-stressTime".equals(args[i]) && ! args[i].toLowerCase().contains("seed")) {
122 System.out.println("\n\nWarning!! Unrecognized option " + args[i] + "\n\n");
123 }
124 }
125 System.out.println("releaseRefMode = " + c.releaseRefMode);
126 System.out.println("whatToKeep = " + c.whatToKeep);
127 System.out.println("classlodingMethod = " + c.classloadingMethod);
128 System.out.println("numberOfGCsBeforeCheck = " + c.numberOfGCsBeforeCheck);
129 System.out.println("keepRefMode = " + c.keepRefMode);
130 System.out.println("humongousClass = " + c.humongousClass);
131 System.out.println("compilationLevel = " + c.compilationLevel);
132 System.out.println("compilationNumber = " + c.compilationNumber);
133 System.out.println("redefineClasses = " + c.redefineClasses);
134 System.out.println("inMemoryCompilation = " + c.inMemoryCompilation);
135 System.out.println("numberOfChecksLimit = " + c.numberOfChecksLimit);
136 return c;
137 }
138
139 }
|
1 /*
2 * Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
101 } else if ("-numberOfGCsBeforeCheck".equalsIgnoreCase(args[i])) {
102 c.numberOfGCsBeforeCheck = Integer.valueOf(args[i + 1].toUpperCase());
103 } else if ("-keep".equalsIgnoreCase(args[i])) {
104 c.whatToKeep = WhatToKeep.valueOf(args[i + 1].toUpperCase());
105 } else if ("-classloadingMethod".equalsIgnoreCase(args[i])) {
106 c.classloadingMethod = ClassloadingMethod.valueOf(args[ i + 1].toUpperCase());
107 } else if ("-keepRefMode".equalsIgnoreCase(args[i])) {
108 c.keepRefMode = KeepRefMode.valueOf(args[i + 1]);
109 } else if ("-humongousClass".equalsIgnoreCase(args[i])) {
110 c.humongousClass = "true".equals(args[i + 1]);
111 } else if ("-compilationLevel".equalsIgnoreCase(args[i])) {
112 c.compilationLevel = Integer.valueOf(args[i + 1]);
113 } else if ("-compilationNumber".equalsIgnoreCase(args[i])) {
114 c.compilationNumber = Integer.valueOf(args[i + 1]);
115 } else if ("-redefineClasses".equalsIgnoreCase(args[i])) {
116 c.redefineClasses = "true".equals(args[i + 1]);
117 } else if ("-inMemoryCompilation".equalsIgnoreCase(args[i])) {
118 c.inMemoryCompilation = "true".equals(args[i + 1]);
119 } else if ("-numberOfChecksLimit".equalsIgnoreCase(args[i])) {
120 c.numberOfChecksLimit = Integer.parseInt(args[i + 1]);
121 } else if (args[i].startsWith("-") && ! "-stressTime".equals(args[i])) {
122 System.out.println("\n\nWarning!! Unrecognized option " + args[i] + "\n\n");
123 }
124 }
125 System.out.println("releaseRefMode = " + c.releaseRefMode);
126 System.out.println("whatToKeep = " + c.whatToKeep);
127 System.out.println("classlodingMethod = " + c.classloadingMethod);
128 System.out.println("numberOfGCsBeforeCheck = " + c.numberOfGCsBeforeCheck);
129 System.out.println("keepRefMode = " + c.keepRefMode);
130 System.out.println("humongousClass = " + c.humongousClass);
131 System.out.println("compilationLevel = " + c.compilationLevel);
132 System.out.println("compilationNumber = " + c.compilationNumber);
133 System.out.println("redefineClasses = " + c.redefineClasses);
134 System.out.println("inMemoryCompilation = " + c.inMemoryCompilation);
135 System.out.println("numberOfChecksLimit = " + c.numberOfChecksLimit);
136 return c;
137 }
138
139 }
|