< prev index next >

test/hotspot/jtreg/vmTestbase/gc/g1/unloading/configuration/TestConfiguration.java

Print this page
rev 59093 : imported patch randomness-code_vmTestbase_unloading


 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 }


 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 }
< prev index next >