test/compiler/whitebox/CompilerWhiteBoxTest.java

changeset 5512
11237ee74aae
parent 5032
d1c9384eecb4
child 5541
f99558245e5c
equal deleted inserted replaced
5511:5394ec69f112 5512:11237ee74aae
59 protected static final boolean TIERED_COMPILATION 59 protected static final boolean TIERED_COMPILATION
60 = Boolean.valueOf(getVMOption("TieredCompilation", "false")); 60 = Boolean.valueOf(getVMOption("TieredCompilation", "false"));
61 /** Value of {@code -XX:TieredStopAtLevel} */ 61 /** Value of {@code -XX:TieredStopAtLevel} */
62 protected static final int TIERED_STOP_AT_LEVEL 62 protected static final int TIERED_STOP_AT_LEVEL
63 = Integer.parseInt(getVMOption("TieredStopAtLevel", "0")); 63 = Integer.parseInt(getVMOption("TieredStopAtLevel", "0"));
64 /** Flag for verbose output, true if {@code -Dverbose} specified */
65 protected static final boolean IS_VERBOSE
66 = System.getProperty("verbose") != null;
64 67
65 /** 68 /**
66 * Returns value of VM option. 69 * Returns value of VM option.
67 * 70 *
68 * @param name option's name 71 * @param name option's name
266 } catch (Exception e) { 269 } catch (Exception e) {
267 tmp = null; 270 tmp = null;
268 } 271 }
269 result += tmp == null ? 0 : tmp; 272 result += tmp == null ? 0 : tmp;
270 } 273 }
271 System.out.println("method was invoked " + count + " times"); 274 if (IS_VERBOSE) {
275 System.out.println("method was invoked " + count + " times");
276 }
272 return result; 277 return result;
273 } 278 }
274 } 279 }
275 280
276 /** 281 /**

mercurial