1 /* |
1 /* |
2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
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 |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
49 * |
49 * |
50 * @throws Exception if one of the checks fails. |
50 * @throws Exception if one of the checks fails. |
51 */ |
51 */ |
52 @Override |
52 @Override |
53 protected void test() throws Exception { |
53 protected void test() throws Exception { |
54 if (testCase.isOsr() && CompilerWhiteBoxTest.MODE.startsWith( |
54 if (skipXcompOSR()) { |
55 "compiled ")) { |
55 return; |
56 System.err.printf("Warning: %s is not applicable in %s%n", |
|
57 testCase.name(), CompilerWhiteBoxTest.MODE); |
|
58 return; |
|
59 } |
56 } |
60 compile(); |
57 compile(); |
61 checkCompiled(); |
58 checkCompiled(); |
62 WHITE_BOX.deoptimizeAll(); |
59 WHITE_BOX.deoptimizeAll(); |
63 checkNotCompiled(); |
60 checkNotCompiled(); |