Mercurial > hg > graal-compiler
comparison test/compiler/whitebox/CompilerWhiteBoxTest.java @ 12328:303826f477c6
8023452: TestCase$Helper(java.lang.Object) must be osr_compiled
Reviewed-by: kvn
author | iignatyev |
---|---|
date | Sat, 28 Sep 2013 12:32:10 +0400 |
parents | f99558245e5c |
children | 600c83f8e6a5 |
comparison
equal
deleted
inserted
replaced
12327:e8e077292da3 | 12328:303826f477c6 |
---|---|
72 = System.getProperty("verbose") != null; | 72 = System.getProperty("verbose") != null; |
73 /** count of invocation to triger compilation */ | 73 /** count of invocation to triger compilation */ |
74 protected static final int THRESHOLD; | 74 protected static final int THRESHOLD; |
75 /** count of invocation to triger OSR compilation */ | 75 /** count of invocation to triger OSR compilation */ |
76 protected static final long BACKEDGE_THRESHOLD; | 76 protected static final long BACKEDGE_THRESHOLD; |
77 /** Value of {@code java.vm.info} (interpreted|mixed|comp mode) */ | |
78 protected static final String MODE | |
79 = System.getProperty("java.vm.info"); | |
77 | 80 |
78 static { | 81 static { |
79 if (TIERED_COMPILATION) { | 82 if (TIERED_COMPILATION) { |
80 THRESHOLD = 150000; | 83 THRESHOLD = 150000; |
81 BACKEDGE_THRESHOLD = 0xFFFFFFFFL; | 84 BACKEDGE_THRESHOLD = 0xFFFFFFFFL; |
200 throw new RuntimeException(method + " must be not osr_compiled"); | 203 throw new RuntimeException(method + " must be not osr_compiled"); |
201 } | 204 } |
202 if (WHITE_BOX.getMethodCompilationLevel(method, true) != 0) { | 205 if (WHITE_BOX.getMethodCompilationLevel(method, true) != 0) { |
203 throw new RuntimeException(method + " osr_comp_level must be == 0"); | 206 throw new RuntimeException(method + " osr_comp_level must be == 0"); |
204 } | 207 } |
205 } | 208 } |
206 | 209 |
207 /** | 210 /** |
208 * Checks, that {@linkplain #method} is compiled. | 211 * Checks, that {@linkplain #method} is compiled. |
209 * | 212 * |
210 * @throws RuntimeException if {@linkplain #method} isn't in compiler queue | 213 * @throws RuntimeException if {@linkplain #method} isn't in compiler queue |